Skip to content

Commit 89f5bee

Browse files
committed
Tighthen 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 7da1b76 commit 89f5bee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.markdownlint-cli2.jsonc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
"MD014": false,
2828
// Multiple headings with the same content. That's fine.
2929
"MD024": false,
30-
// Some headers finish with ! because it refers to a function name
31-
"MD026": false,
30+
//
31+
// Trailing punctuation in heading.
32+
// Some headers finish with ! because it refers to a function name. Therefore we remove ! from
33+
// the default values.
34+
"MD026": {
35+
"punctuation": ".,;:。,;:!"
36+
},
3237
// Allow empty line between block quotes. Used by contiguous admonition blocks.
3338
"MD028": false,
3439
// Allowed HTML inline elements.

0 commit comments

Comments
 (0)