mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-24 13:54:06 +01:00
Update MD026/no-trailing-punctuation to handle empty punctuation paramater, escape for RegExp (fixes #205).
This commit is contained in:
parent
d336a11665
commit
91b4fcd55f
6 changed files with 39 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD026": {
|
||||
"punctuation": ".,;:!"
|
||||
"punctuation": ".,;:!]"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,7 @@
|
|||
|
||||
## Heading 6?
|
||||
|
||||
## Heading 7 {MD026}]
|
||||
|
||||
The rule has been customized to allow question marks while disallowing
|
||||
everything else.
|
||||
|
|
|
|||
6
test/heading_trailing_punctuation_empty.json
Normal file
6
test/heading_trailing_punctuation_empty.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD026": {
|
||||
"punctuation": ""
|
||||
}
|
||||
}
|
||||
13
test/heading_trailing_punctuation_empty.md
Normal file
13
test/heading_trailing_punctuation_empty.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Heading Trailing Punctuation
|
||||
|
||||
## Heading .
|
||||
|
||||
## Heading ,
|
||||
|
||||
## Heading ;
|
||||
|
||||
## Heading :
|
||||
|
||||
## Heading !
|
||||
|
||||
## Heading ?
|
||||
Loading…
Add table
Add a link
Reference in a new issue