标题编号
标题可以自定义ID编号
标题编号语法
许多Markdown编辑器允许您创建自定义的标题ID,用于对CSS的修改。要添加标题ID,请在与标题相同的行上用大括号括起该自定义ID。
### Flowers Blooming in the Church {#flowers-id}
对应的HTML的结构是这样
<h3 id="flowers-id">Flowers Blooming in the Church</h3>
链接到标题ID(#headid)
通过创建带有#的标准链接可以链接文件中带有自定义ID的标题。
| Markdown | HTML | 预览 |
|---|---|---|
[Flowers Blooming in the Church](#flowers-id) | <a href="#flowers-id">Flowers Blooming in the Church</a> | Flowers Blooming in the Church |