-
Notifications
You must be signed in to change notification settings - Fork 5k
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
ENH: allow Markdown footnotes #1287
Comments
Hi @stsievert, Thanks for submitting this enhancement issue. Let me ping @Carreau who may have some insights on what could be done now and in the future. |
Hi @stsievert , Unfortunately footnotes are not in the markdown or commonmark spec, and there is a lot of requests for markdown extension: Footnote, TOC, label, reference, , which each having multiple syntax... And the team does not have the bandwidth to maintain the multiple parser and formatter to support all of that. So for now the response we give to any proposal to extend the markdown syntax beyond basic markdown is : "Not before the CommonMark spec and implementation does not have a way to extend markdown, and enough packages support these features". Sorry to respond by negative, hope we can revisit in a year or so. |
Footnotes are in the kramdown spec, which also has Github-flavored markdown. Maybe this would be worth switching to in the future… it seems pretty widely used. Github-flavored markdown doesn’t seem to be going anywhere and kramdown has good support (jekyll’s new default, etc). |
Then I'd like to know, is it possible to change to another renderer of markdown. If it's possible, some users can create or find the renderer they want by themselves, and will not trouble the project members to do that. |
Its been over a year, and I am experiencing a similar desire. Is the footnote extension supported as of yet @Carreau? |
No, we are currently trying to formalize our markdown spec. Then we might start to introduce features. It will take a wile as we still have low manpower. Sorry for the waiting. |
I too would love to see a footnote like feature in Jupyter notebooks. It could take the form of a link to a small bubble similar to some of the comment features you see in other packages. |
You might be able to use, or adapt our bibtex reference extension from our Calysto Document Tools. It is now found here: https://github.com/Calysto/notebook-extensions I think it would be pretty easy to make a footnote version. You can see an example video here: https://www.youtube.com/watch?v=86FTd1pcoZ4 And here is a picture after clicking the Reference button. The secret is in the |
That could be ideal. Then it might be possible to share old bibtex files with Jupyter Notebooks! |
Here is my way:just use markdown
it will look like below: BodyThis is a example of footnote1. Another footnote2. Footnote footnote 1 if you click the supscript, it will jump to footnote below. |
lol when markdown becomes markup. If you don't mind hover tooltips, as well as backlinks: This is an example of a footnote and tooltip[<sup id="fn1-back">1</sup>](#fn1 "footnote and tooltip 1").
Just a footnote[<sup id="fn2-back">2</sup>](#fn2).
Just a tooltip[<sup>3</sup>](#_blank "tooltip 3").
[<sup id="fn1">1</sup>](#fn1-back) footnote and tooltip 1
[<sup id="fn2">2</sup>](#fn2-back) footnote 2 This is an example of a footnote and tooltip1. |
Any updates on this? Would ❤️ if the support for footnotes would be added to Notebooks. |
This example doesn't print the leading sup 1 or 2 in the footnotes for me - I copy pasted your code into a markdown cell in a jupyter notebook. Does it still work for you? |
Ah just a minor mistake on my part not syncing the raw code snippet. Updated comment. |
Oh that's lovely, thank you! |
This feature will exist as a community extension in the future Notebook v7 release using the https://github.com/executablebooks/jupyterlab-myst . For more information about this new release, checkout the Notebook v7 Enhancement Proposal. |
Several times I've desired footnotes while typing up notebooks, typically in the form of homeworks/labs. These footnotes could be used as citations/references/sidenotes/etc.
Of course, it'd be nice to have a return link in the footnote in the form of ↩, similar to the footnotes on marco.org.
The text was updated successfully, but these errors were encountered: