Skip to content

Commit 009fc43

Browse files
committed
Tighten up Markdownlint rule "Trailing punctuation in heading"
Rule MD026 "Trailing punctuation in heading" is enforced, we simply remove `!` from the list of forbidden characters. Source: https://github.com/DavidAnson/markdownlint/blob/main/doc/md026.md
1 parent 0b4d0f3 commit 009fc43

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.markdownlint-cli2.jsonc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@
3030
// Duplication is allowed for headings with different parents.
3131
"siblings_only": true
3232
},
33-
// Some headers finish with ! because it refers to a function name
34-
"MD026": false,
33+
// Trailing punctuation in heading.
34+
// Some headers finish with ! because it refers to a function name. Therefore we remove ! from
35+
// the default values.
36+
"MD026": {
37+
"punctuation": ".,;:。,;:!"
38+
},
3539
// Allow empty line between block quotes. Used by contiguous admonition blocks.
3640
"MD028": false,
3741
// Allowed HTML inline elements.

0 commit comments

Comments
 (0)