How to add footnotes to GitHub-flavoured Markdown?

前端 未结 10 1039
夕颜
夕颜 2021-01-29 17:21

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


        
10条回答
  •  不知归路
    2021-01-29 17:53

    Although the question is about GitHub flavored Markdown, I think it's worth mentioning that as of 2013, GitHub supports AsciiDoc which has this feature builtin. You only need to rename your file with a .adoc extension and use:

    A statement.footnote:[Clarification about this statement.]
    
    A bold statement!footnote:disclaimer[Opinions are my own.]
    
    Another bold statement.footnote:disclaimer[]
    

    Documentation along with the final result is here.

提交回复
热议问题