How to add footnotes to GitHub-flavoured Markdown?

前端 未结 10 1119
夕颜
夕颜 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:56

    Although I am not aware if it's officially documented anywhere, you can do footer notes in Github.

    1. Mark the place where you want to insert footer link with a number enclosed in square brackets, I.E. [1]

    2. On the bottom of the post, make a reference of the numbered marker and followed by a colon and the link, I.E. [1]: http://www.example.com/link1

    And once you preview it, it will be rendered as numbered links in the body of the post.

提交回复
热议问题