Add MD026, MD027 with tests.

This commit is contained in:
David Anson 2015-03-11 18:40:46 -07:00
parent 1112ac729d
commit 285a30e124
5 changed files with 109 additions and 15 deletions

21
test/blockquote_spaces.md Normal file
View 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

View file

@ -0,0 +1,11 @@
# Heading 1 {MD026}.
## Heading 2 {MD026},
## Heading 3 {MD026}!
## Heading 4 {MD026}:
## Heading 5 {MD026};
## Heading 6 {MD026}?

View file

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

View 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.