错误示例
一错
不就是个锚点吗,复制标题再粘贴加个 #
就行了:
## Table of contents
- [What's included](#Whats included)
- [Quick start](#Quick start)
- [Bugs and feature requests](#Bugs and feature requests)
- [License](#License)
除了最后一个转成
a
链接了,其它都是灰色...
再错
不对不对,看了下别人家耕的代码,空格是用的 -
,我也换上:
## Table of contents
- [What's included](#Whats-included)
- [Quick start](#Quick-start)
- [Bugs and feature requests](#Bugs-and-feature-requests)
- [License](#License)
看啥看,蓝瘦又咋样,点了无效才是香菇
正确姿势
啪啪啪,一错再错,怒摔键盘...
字母要统统小写,统统小写,统统小写,重要的事情说三遍!
## Table of contents
- [What's included](#whats-included)
- [Quick start](#quick-start)
- [Bugs and feature requests](#bugs-and-feature-requests)
- [License](#license)
结合中文
仍旧英文全小写,空格换成 -
## Table of contents
- [What's included](#whats-included)
- [Quick start](#quick-start)
- [Bugs and feature requests](#bugs-and-feature-requests)
- [License](#license)
- [HTML 部分](#html-部分)
总结
评论里有小伙伴指出,还没有考虑中文的 ,
等标点会被 GFM 移除的问题。
一错再错
字母要统统小写,空格统统要替换成 '-'
URL 不区分大小写
—— 2017/04/06 By Live, Single night.