Update MD043/required-headings to treat "*" as "zero or more" and "+" as "one or more" (fixes #281).

This commit is contained in:
David Anson 2020-11-23 20:47:28 -08:00
parent c693a9a3d8
commit e20502c494
12 changed files with 126 additions and 13 deletions

View file

@ -0,0 +1,6 @@
{
"default": true,
"MD043": {
"headings": [ "+" ]
}
}

View file

@ -0,0 +1,11 @@
# One
## Two
### THREE
#### four
##### Five
###### SiX

View file

@ -0,0 +1,9 @@
{
"default": true,
"MD041": false,
"MD043": {
"headings": [
"+"
]
}
}

View file

@ -0,0 +1,5 @@
Text
Text
{MD043:6}

View file

@ -0,0 +1,9 @@
{
"default": true,
"MD041": false,
"MD043": {
"headings": [
"*"
]
}
}

View file

@ -0,0 +1,5 @@
Text
Text
Text

View file

@ -0,0 +1,14 @@
{
"default": true,
"MD043": {
"headings": [
"# One",
"+",
"### Three",
"+",
"### Six",
"+",
"#### 7"
]
}
}

View file

@ -0,0 +1,15 @@
# One
## Two
### THREE
## four
## Five
### SiX
#### 7
{MD043:16}

View file

@ -0,0 +1,14 @@
{
"default": true,
"MD043": {
"headings": [
"# One",
"*",
"### Three",
"*",
"### Six",
"*",
"#### 7"
]
}
}

View file

@ -0,0 +1,13 @@
# One
## Two
### THREE
## four
## Five
### SiX
#### 7