Skip to content

MD002 - 第一标头应是顶级

标签: 标题

别名:first-header-h1

参数:level(数字;默认1)

文档的第一个标题必须是最高级的标题,也就是h1。

当文档中的第一个标头不是 h1 标头时,会触发此规则:

## This isn't a H1 header
### Another header

文档中的第一个标头应该是 h1 标头:

# Start with a H1 header
## Then use a H2 for subsections