Mdx: Feature request: footnotes

Created on 16 Jun 2018  Â·  5Comments  Â·  Source: mdx-js/mdx

Most helpful comment

+1 I'm in the process of moving my blog off of Jekyll and onto Gatsby w/ MDX, and footnotes are a key part of many of my posts.

This paragraph has a footnote.[^1]

[^1]: Here's the footnote

Should render to something like:

<p>
  This paragraph has a footnote.<sup><a href="#fn1" id="fnref1">1</a></sup>
</p>

<!-- at the bottom of the document -->
<ol>
  <li id="fn1">Here's the footnote. <a href="#fnref1">↩</a></li>
</ol>

All 5 comments

Please provide a full description when doing a feature request. This makes it easier for us to understand what you mean exactly.

Some flavors of Markdown include support for footnotes/endnotes, and as someone using MDX for writing essays for school, it'd be great to have that built-in. See the "Footnotes" section here: https://help.ghost.org/article/4-markdown-guide

+1 I'm in the process of moving my blog off of Jekyll and onto Gatsby w/ MDX, and footnotes are a key part of many of my posts.

This paragraph has a footnote.[^1]

[^1]: Here's the footnote

Should render to something like:

<p>
  This paragraph has a footnote.<sup><a href="#fn1" id="fnref1">1</a></sup>
</p>

<!-- at the bottom of the document -->
<ol>
  <li id="fn1">Here's the footnote. <a href="#fnref1">↩</a></li>
</ol>

Thanks for creating the issue @lachlanjc and providing your thoughts @daneden!

We've added support for footnotes in 0.12.0 via #173. Please let us know if you encounter any issues.

Fantastic, thank you @johno!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nkzn picture Nkzn  Â·  13Comments

johno picture johno  Â·  21Comments

atanasster picture atanasster  Â·  15Comments

naivefun picture naivefun  Â·  12Comments

AlmeroSteyn picture AlmeroSteyn  Â·  32Comments