mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update MD043 to fix required header checks in middle and last when using special char "*" (#396)
This commit is contained in:
parent
9122b8d935
commit
c6d95cb904
8 changed files with 90 additions and 6 deletions
14
test/required-headings-missing-last-zero-or-more.json
Normal file
14
test/required-headings-missing-last-zero-or-more.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD043": {
|
||||
"headings": [
|
||||
"# One",
|
||||
"*",
|
||||
"### Three",
|
||||
"*",
|
||||
"### Five",
|
||||
"*",
|
||||
"#### FOO"
|
||||
]
|
||||
}
|
||||
}
|
||||
15
test/required-headings-missing-last-zero-or-more.md
Normal file
15
test/required-headings-missing-last-zero-or-more.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# One
|
||||
|
||||
## Two
|
||||
|
||||
### THREE
|
||||
|
||||
## four
|
||||
|
||||
## Five
|
||||
|
||||
### SiX
|
||||
|
||||
#### FOO
|
||||
|
||||
{MD043:16}
|
||||
14
test/required-headings-missing-middle-zero-or-more.json
Normal file
14
test/required-headings-missing-middle-zero-or-more.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD043": {
|
||||
"headings": [
|
||||
"# One",
|
||||
"*",
|
||||
"### Three",
|
||||
"*",
|
||||
"### FOO",
|
||||
"*",
|
||||
"#### 7"
|
||||
]
|
||||
}
|
||||
}
|
||||
15
test/required-headings-missing-middle-zero-or-more.md
Normal file
15
test/required-headings-missing-middle-zero-or-more.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# One
|
||||
|
||||
## Two
|
||||
|
||||
### THREE
|
||||
|
||||
## four
|
||||
|
||||
## Five
|
||||
|
||||
### SiX
|
||||
|
||||
#### 7
|
||||
|
||||
{MD043:16}
|
||||
11
test/required-headings-zero-or-more-last.json
Normal file
11
test/required-headings-zero-or-more-last.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"default": true,
|
||||
"MD043": {
|
||||
"headings": [
|
||||
"# One",
|
||||
"## Two",
|
||||
"### Three",
|
||||
"*"
|
||||
]
|
||||
}
|
||||
}
|
||||
5
test/required-headings-zero-or-more-last.md
Normal file
5
test/required-headings-zero-or-more-last.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# One
|
||||
|
||||
## Two
|
||||
|
||||
### THREE
|
||||
Loading…
Add table
Add a link
Reference in a new issue