我有几个同名的部分,但位于不同的父部分中:
# Page title
## Section A
### Examples
## Section B
### Examples
markdownlint linter 给了我这个警告:
MD024/no-duplicate-heading/no-duplicate-header: 具有相同内容的多个标题。
https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md
如何关闭此警告,并且当我在同一级别上有多个同名部分时仍然收到警告,如下所示:
# Page title
## Section A
## Section A
?
在根文件夹中创建
.markdownlint.json
文件并添加以下 JSON:
{
"no-duplicate-header": {
"allow_different_nesting": true
}
}