How to add footnotes to GitHub-flavoured Markdown?

Enrico Susatyo picture Enrico Susatyo · Aug 30, 2014 · Viewed 114.6k times · Source

I am just trying to add footnotes in my GitHub Gist, but it doesn't work:

Some long sentence. [^footnote]

[^footnote]: Test, [Link](https://google.com).

I am following this guide and I don't think I'm doing anything wrong. Can someone point out my mistake?

Answer

suryasankar picture suryasankar · Apr 1, 2015

Expanding a little bit on the previous answer, you can make the footnote links clickable here as well. First define the footnote at the bottom like this

<a name="myfootnote1">1</a>: Footnote content goes here

Then reference it at some other place in the document like this

<sup>[1](#myfootnote1)</sup>