-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Footnotes get user-content-user-content ids and do not work #13
Comments
The example of footnotes not working is live here: https://michaelrommel.com/create/2022-01-25-markdown-sample#user-content-superscript--subscript The sourcecode to that function is here: https://github.com/michaelrommel/blog/blob/main/src/lib/markdown.js |
I think, now I solved it. I have set |
Hi! Different things indeed add prefixes. The way to solve that is to do it once, at the end. By This package itself, Importantly, the markdown is either dangerous or not. If it is not dangerous, you do not need to sanitize it, you do not need prefix things. |
Initial checklist
Affected package
remark-gfm#@3.0.1
Steps to reproduce
Hello,
when using the following sequence of plugins (shortened), I get issues with the footnotes.
At the remarkRehype stage already the footnotes have a
user-content-
prefix and rehypeSanitize adds another one on top of it. Before remarkSanitize it works fine. So in order to not have the footnotes already come with a user-content prefix, I wanted to supply the remarkGfm with a clobberPrefix of "" but it does not trickle down to the footnote plugin.Is there a way to inherit this?
Probably here?
micromark-extension-gfm/lib/index.js
Line 40 in d64834e
Thanks,
Michael.
Actual behavior
Footnote
Expected behavior
I'd like the footnotes before remark-sanitize have NO user-content- prefix
Runtime
node@22.7
Package manager
pnpm
Operating system
linux
Build and bundle tools
Vite
The text was updated successfully, but these errors were encountered: