mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Update MD024/no-duplicate-heading to remove duplicate parameter allow_different_nesting which confuses people.
This commit is contained in:
parent
c39facc73f
commit
f2725178b1
15 changed files with 19 additions and 49 deletions
|
@ -801,8 +801,6 @@ Aliases: `no-duplicate-heading`
|
|||
|
||||
Parameters:
|
||||
|
||||
- `allow_different_nesting`: Only check sibling headings (`boolean`, default
|
||||
`false`)
|
||||
- `siblings_only`: Only check sibling headings (`boolean`, default `false`)
|
||||
|
||||
This rule is triggered if there are multiple headings in the document that have
|
||||
|
@ -822,9 +820,8 @@ To fix this, ensure that the content of each heading is different:
|
|||
## Some more text
|
||||
```
|
||||
|
||||
If the parameter `siblings_only` (alternatively `allow_different_nesting`) is
|
||||
set to `true`, heading duplication is allowed for non-sibling headings (common
|
||||
in changelogs):
|
||||
If the parameter `siblings_only` is set to `true`, duplication is allowed for
|
||||
headings with different parents (as is common in changelogs):
|
||||
|
||||
```markdown
|
||||
# Change log
|
||||
|
|
|
@ -6,8 +6,6 @@ Aliases: `no-duplicate-heading`
|
|||
|
||||
Parameters:
|
||||
|
||||
- `allow_different_nesting`: Only check sibling headings (`boolean`, default
|
||||
`false`)
|
||||
- `siblings_only`: Only check sibling headings (`boolean`, default `false`)
|
||||
|
||||
This rule is triggered if there are multiple headings in the document that have
|
||||
|
@ -27,9 +25,8 @@ To fix this, ensure that the content of each heading is different:
|
|||
## Some more text
|
||||
```
|
||||
|
||||
If the parameter `siblings_only` (alternatively `allow_different_nesting`) is
|
||||
set to `true`, heading duplication is allowed for non-sibling headings (common
|
||||
in changelogs):
|
||||
If the parameter `siblings_only` is set to `true`, duplication is allowed for
|
||||
headings with different parents (as is common in changelogs):
|
||||
|
||||
```markdown
|
||||
# Change log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue