Skip to content
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

Closed
stsievert opened this issue Mar 31, 2016 · 16 comments
Closed

ENH: allow Markdown footnotes #1287

stsievert opened this issue Mar 31, 2016 · 16 comments

Comments

@stsievert
Copy link

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.

@willingc
Copy link
Member

willingc commented Apr 1, 2016

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.

@Carreau
Copy link
Member

Carreau commented Apr 1, 2016

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.

@Carreau Carreau added this to the no action milestone Apr 1, 2016
@stsievert
Copy link
Author

stsievert commented Apr 2, 2016

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).

@Edenharder
Copy link

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.

@syoungs67
Copy link

Its been over a year, and I am experiencing a similar desire. Is the footnote extension supported as of yet @Carreau?

@Carreau
Copy link
Member

Carreau commented Jul 5, 2017

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.

@HEHenson
Copy link

HEHenson commented Aug 9, 2017

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.

@dsblank
Copy link
Member

dsblank commented Aug 9, 2017

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 #cite- reference in the markdown.

screenshot from 2017-08-09 19-48-12

@HEHenson
Copy link

That could be ideal. Then it might be possible to share old bibtex files with Jupyter Notebooks!

@trevery
Copy link

trevery commented Jan 3, 2019

Here is my way:

just use markdown [](#any_name) and a little html <span href="#any_name" footnote content </span>

This is a example of footnote[<sup>1</sup>](#fn1). Another footnote[<sup>2</sup>](#fn2).

<span id="fn1"> footnote 1</span>
<span id="fn2"> footnote 2</span>

it will look like below:


Body

This is a example of footnote1. Another footnote2.

Footnote

footnote 1
footnote 2


if you click the supscript, it will jump to footnote below.

@casperdcl
Copy link

casperdcl commented Jun 21, 2019

just use markdown [](#any_name) and a little html <span href="#any_name" footnote content </span>

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.
Just a footnote2.
Just a tooltip3.

1 footnote and tooltip 1
2 footnote 2

@HTenkanen
Copy link

Any updates on this? Would ❤️ if the support for footnotes would be added to Notebooks.

@jamesowers-ch
Copy link

just use markdown [](#any_name) and a little html <span href="#any_name" footnote content </span>

lol when markdown becomes markup.

If you don't mind hover tooltips:

This is a example of footnote and tooltip[<sup>1</sup>](#fn1 "footnote and tooltip 1").
Another footnote[<sup>2</sup>](#fn2).
Another tooltip[<sup>3</sup>](#_blank "tooltip 3").

<span id="fn1">footnote and tooltip 1</span>
<span id="fn2">footnote 2</span>

This is a example of footnote and tooltip1.
Another footnote2.
Another tooltip3.

1 footnote and tooltip 1
2 footnote 2

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?

@casperdcl
Copy link

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.

@jamesowers-ch
Copy link

Oh that's lovely, thank you!

@tonyfast
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests