Hugo: Support footnote return links

Created on 28 Nov 2019  Â·  2Comments  Â·  Source: gohugoio/hugo

Version 0.60.0; yes, latest Hugo version is used.

Hugo 0.60.0 + Gold is just great! Thank you!

The footnote extension seems to not support return links although they are part of the PHP Markdown extra.

It is difficult for readers to navigate between the text and footnotes.

Is there a way to enable (and modify) footnote return links?

Thank you!

Markdown:

That's some text with a footnote.[^1]

[^1]: And that's the footnote.

Output:

…
<section class="footnotes" role="doc-endnotes"><hr><ol><li id="fn:1" role="doc-endnote"><p>And that's the footnote.</p></li></ol></section>
Upstream

Most helpful comment

goldmark author here, I've added back links to the footnote and released new version.

All 2 comments

I agree, but I think a fix fits more natural into Goldmark (so more people can appreciate it).

Can you create an issue here: https://github.com/yuin/goldmark/issues

Link back to this issue so we can track it.

goldmark author here, I've added back links to the footnote and released new version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marekr picture marekr  Â·  3Comments

MunifTanjim picture MunifTanjim  Â·  3Comments

digitalcraftsman picture digitalcraftsman  Â·  3Comments

geddski picture geddski  Â·  3Comments

mumblecrunch picture mumblecrunch  Â·  3Comments