如何在GitHub风格的Markdown中添加脚注? [英] How to add footnotes to GitHub-flavoured Markdown?

查看:92
本文介绍了如何在GitHub风格的Markdown中添加脚注?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想在我的GitHub Gist 中添加脚注,但这不起作用:

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?

推荐答案

GitHub风味的Markdown不支持脚注,但您可以使用Unicode字符或上标标签(例如,< sup> 1</sup> .

GitHub Flavored Markdown doesn't support footnotes, but you can manually fake it¹ with Unicode characters or superscript tags, e.g. <sup>1</sup>.

¹当然这不是理想的选择,因为您现在要负责维护脚注的编号.但是,如果您只有一个或两个,则效果很好.

¹Of course this isn't ideal, as you are now responsible for maintaining the numbering of your footnotes. It works reasonably well if you only have one or two, though.

这篇关于如何在GitHub风格的Markdown中添加脚注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆