How to add footnotes to GitHub-flavoured Markdown?

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

    Expanding on the previous answers even further, you can add an id attribute to your footnote's link:

     Bla bla [1](#f1)
    

    Then from within the footnote, link back to it.

    1 Footnote content here. [↩](#a1)
    

    This will add a little at the end of your footnote's content, which takes your readers back to the line containing the footnote's link.

提交回复
热议问题