Hey! I’m trying to implement an editor with footnotes. The core of the implementation is the footnote demo. However, my implementation has one of the same problems of the demo: when selecting around the footnote reference and toggling a mark, it gets toggled in all of the footnote’s content.
After thinking a lot about it, I think the only approach is to re-implement footnotes with the references being decoupled from the content. I’ve thought about hacks to make it work but it would be way too complex and fragile (and even then, the connection with the inner editor seems fragile too.)
Has anyone done something similar?