如果您在想要导航到的标题中使用符号花哨,请记住一些额外的事情......
# What this is about
------
#### Table of Contents
- [About](#what-this-is-about)
- [⚡ Sunopsis](#9889-tldr)
- [:gear: Grinders](#it-grinds-my-gears)
- [Attribution]
------
## ⚡ TLDR
Words for those short on time or attention.
___
## It Grinds my :gear:s
Here _`:gear:`_ is not something like ⚙ or ⛭
___
## ⛤ Attribution
Probably to much time at a keyboard
[Attribution]: #9956-attribution
...标题字符串中的#、;、& 和: 之类的内容通常被忽略/条带化而不是转义,也可以使用引用样式链接,使快速使用更容易。
备注
GitHub 支持在提交、自述文件等中使用 :word: 语法。如果对使用它们感兴趣,请参阅 gist(来自 rxaviers)。
对于现代浏览器,几乎所有其他地方都可以使用十进制或十六进制; w3schools 的备忘单很方便,特别是如果使用带有符号的 CSS ::before 或 ::after 伪元素更符合您的风格。
奖励积分?
以防万一有人想知道如何将标题中的图像和其他链接解析为 id...
- [Imaged](#alt-textbadge__examplehttpsexamplecom-to-somewhere)
## [![Alt Text][badge__example]](https://example.com) To Somewhere
[badge__example]:
https://img.shields.io/badge/Left-Right-success.svg?labelColor=brown&logo=stackexchange
"Eeak a mouse!"
注意事项
MarkDown 渲染因地而异,所以像...
## methodName([options]) => <code>Promise</code>
... 在 GitHub 上会有一个带有id 的元素,例如...
id="methodnameoptions--promise"
... vanilla 卫生会导致id of...
id="methodnameoptions-codepromisecode"
... 意味着从模板编写或编译 MarkDown 文件要么需要针对一种 slugifeing 方式,要么为放置的各种 聪明 方式添加配置和脚本逻辑喜欢清理标题的文字。