【发布时间】:2017-09-02 14:03:22
【问题描述】:
我需要生成一个长的README.md 文件和一些指向不同部分的链接,比如开头的目录。 Markdown 将部分标题转换为链接:
这是 Markdown 中的标题和链接
为了生成目录的链接,我需要锚点的值。我有的文字。我需要规则的片段。大概是这样的:
[This is a heading and a link in Markdown](#thisisaheadingandalinkinmarkdown)
有人知道markdown中的标题如何转换为锚/片段值的规则吗?
【问题讨论】:
标签: github hyperlink markdown anchor gitlab