-
Notifications
You must be signed in to change notification settings - Fork 89
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
Support footnotes in markdown text #940
Comments
Are you thinking about this plugin? https://github.com/markdown-it/markdown-it-footnote |
@Fil yes exactly! |
If you want to play with this, MarkdownIt is called here with one plugin (markdown-it-anchor): https://github.com/observablehq/framework/blob/main/src/markdown.ts#L424 |
Maybe we could have a way to register markdown-it plugins in the config file? |
👍 to custom |
After #965 you can install the |
Works like a charm! Thanks a lot for addressing this feature request. @Fil Why did you re-open the issue? |
I thought maybe something was missing… the emoji arrows don't look too good, do they? |
It looks fine in macOS Safari, but in Chrome it renders as: ![]() One probably needs to use the VS15 variation selector to prevent emoji presentation. I assume that’s an option with the markdown-it-footnote plugin? Edit: Looks like markdown-it-footnote already uses VS15, so it’s just Chrome that’s ignoring it. 😞 |
Notebooks often need to omit details in the main text, but these details still need to be there somewhere. Footnotes are a perfect way to achieve this.
markdown-it does support footnotes. What's stopping us from having them in our Observable Framework notebooks? :)
Bonus point would be to have the possibility to have the footnotes on the right side of the notebook, or have them appear on mouseOver.
The text was updated successfully, but these errors were encountered: