mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD026, MD027 with tests.
This commit is contained in:
parent
1112ac729d
commit
285a30e124
5 changed files with 109 additions and 15 deletions
21
test/blockquote_spaces.md
Normal file
21
test/blockquote_spaces.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Some text
|
||||
|
||||
> Hello world
|
||||
> Foo {MD027}
|
||||
> Bar {MD027}
|
||||
|
||||
This tests other things embedded in the blockquote:
|
||||
|
||||
> *Hello world*
|
||||
> *foo* {MD027}
|
||||
> **bar** {MD027}
|
||||
> "Baz" {MD027}
|
||||
> *foo*
|
||||
> **bar**
|
||||
> 'baz'
|
||||
|
||||
Test the first line being indented too much:
|
||||
|
||||
> Foo {MD027}
|
||||
> Bar {MD027}
|
||||
> Baz
|
||||
11
test/header_trailing_punctuation.md
Normal file
11
test/header_trailing_punctuation.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Heading 1 {MD026}.
|
||||
|
||||
## Heading 2 {MD026},
|
||||
|
||||
## Heading 3 {MD026}!
|
||||
|
||||
## Heading 4 {MD026}:
|
||||
|
||||
## Heading 5 {MD026};
|
||||
|
||||
## Heading 6 {MD026}?
|
||||
6
test/header_trailing_punctuation_customized.json
Normal file
6
test/header_trailing_punctuation_customized.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD026": {
|
||||
"punctuation": ".,;:!"
|
||||
}
|
||||
}
|
||||
14
test/header_trailing_punctuation_customized.md
Normal file
14
test/header_trailing_punctuation_customized.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Heading 1 {MD026}.
|
||||
|
||||
## Heading 2 {MD026},
|
||||
|
||||
## Heading 3 {MD026}!
|
||||
|
||||
## Heading 4 {MD026}:
|
||||
|
||||
## Heading 5 {MD026};
|
||||
|
||||
## Heading 6?
|
||||
|
||||
The rule has been customized to allow question marks while disallowing
|
||||
everything else.
|
||||
Loading…
Add table
Add a link
Reference in a new issue