-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading text with footnotes #6
Comments
Confirming that I see the same thing — I suspect the culprit is the Should be a trivial fix; I'll try to get to it in the next few days! |
OK, I dug into the code. In parseHTML() {
return [
{
tag: "ol:has(.footnotes)",
priority: 1000,
},
];
}, That selector doesn't work. The It should just be I guess I'll put together a PR. |
@jmduke Somehow our posts went up out-of-order? I guess the comments are only eventually consistent. :) I sent over a PR. I tested it manually and it seems to work. |
OH, and if you want to do the right thing and add tests and whatnot, I won't be offended if you just ditch my PR. It's not exactly a major change. 😄 |
Ha, jinx! The PR looks good. Unless you're really under the time-sensitivity gun, I would like to take this as an excuse to set up a testing harness; if by EOD tomorrow I don't carve out the time, I'll merge in yours! |
Thanks! Let me know when a new version is published and I'll switch over from my temporary fork. |
I installed
tiptap-footnotes
, and it seems to work great while the text is still in the editor. Thanks for this! It's exactly what I want it to be.But it doesn't seem to round-trip. :(
I'm saving out the exact text from getHTML(), and then loading it back in using
content=
, and after loading the text back in, Tiptap strips all of the class info from the<ol>
and<li>
entries, which preventstiptap-footnotes
from identifying them as footnotes.If I try adding a footnote, it will add TWO footnotes below the existing footnote.
Thoughts?
The text was updated successfully, but these errors were encountered: