mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-06 07:58:49 +01:00
Allow question mark by default for MD026/no-trailing-punctuation (fixes #276).
This commit is contained in:
parent
3827842930
commit
6c1bc8ecb5
8 changed files with 30 additions and 16 deletions
|
|
@ -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 !
|
||||
-------------------------------
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD026": {
|
||||
"punctuation": ".,;:!]"
|
||||
"punctuation": ".,;:?]"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue