Everyone who's ever build on top of contenteditable has war stories, my first bash with it was about 19 years ago. But tools like Prosemirror and Lixical solve most of those issues and separate the content from the presentation. 99% of the time they do what you want, but that 1% is impossible (page breaks!). Personally I'm a fan of TipTap, it's a great abstraction over the lower level complexities of Prosemirror. The TipTap/ProseMirror/Yjs combination is insanely good for being able to build collaborative editing.<p>Amused by the nod to the Ladybird WASM idea at the end, I'm taking credit for that: <a href="https://news.ycombinator.com/item?id=35521878">https://news.ycombinator.com/item?id=35521878</a>. Good ideas spread. (Joe, apologies for not getting back to your email, it's been a rather busy few months)