Skip to content

Commit ceb132a

Browse files
committed
Enable Markdown rule: Multiple headings with the same content
We allow duplication for headings with different parents in rule MD024.
1 parent 7da1b76 commit ceb132a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.markdownlint-cli2.jsonc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
// This warns if you have "console" or "shell" code blocks with a dollar sign $ that
2626
// don't show output. We use those a lot, so this is fine for us.
2727
"MD014": false,
28-
// Multiple headings with the same content. That's fine.
29-
"MD024": false,
28+
// Multiple headings with the same content.
29+
"MD024": {
30+
// Duplication is allowed for headings with different parents.
31+
"siblings_only": true
32+
},
3033
// Some headers finish with ! because it refers to a function name
3134
"MD026": false,
3235
// Allow empty line between block quotes. Used by contiguous admonition blocks.

0 commit comments

Comments
 (0)