Allow question mark by default for MD026/no-trailing-punctuation (fixes #276).

This commit is contained in:
David Anson 2020-11-17 20:32:17 -08:00
parent 3827842930
commit 6c1bc8ecb5
8 changed files with 30 additions and 16 deletions

View file

@ -10,7 +10,7 @@
## Heading {MD026} !
## Heading {MD026} ?
## Heading?
## Heading/Full-Width {MD026} 。
@ -22,11 +22,11 @@
## Heading/Full-Width {MD026}
## Heading/Full-Width {MD026}
## Heading/Full-Width
<!-- markdownlint-disable heading-style -->
## Heading {MD026} alternate ? ##
## Heading {MD026} alternate ! ##
Heading {MD026} alternate too ?
Heading {MD026} alternate too !
-------------------------------

View file

@ -1,6 +1,6 @@
{
"default": true,
"MD026": {
"punctuation": ".,;:!]"
"punctuation": ".,;:?]"
}
}

View file

@ -2,15 +2,15 @@
## Heading 2 {MD026},
## Heading 3 {MD026}!
## Heading 3!
## Heading 4 {MD026}:
## Heading 5 {MD026};
## Heading 6?
## Heading 6 {MD026}?
## Heading 7 {MD026}]
The rule has been customized to allow question marks while disallowing
The rule has been customized to allow exclamation point while disallowing
everything else.