mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-18 21:45:29 +01:00
Re-implement MD022/blanks-around-headings to ignore comments and blockquotes.
This commit is contained in:
parent
1db87ef0c6
commit
debc08bca1
5 changed files with 16 additions and 35 deletions
|
|
@ -5,11 +5,11 @@
|
|||
## MD022/blanks-around-headings
|
||||
|
||||
>
|
||||
### Alpha {MD022}
|
||||
### Alpha
|
||||
> >
|
||||
|
||||
<!-- comment -->
|
||||
### Beta {MD022}
|
||||
### Beta
|
||||
<!-- comments --><!-- comments -->
|
||||
|
||||
> Text
|
||||
|
|
|
|||
|
|
@ -20,17 +20,17 @@ Text
|
|||
|
||||
- Item
|
||||
item
|
||||
> # Quoted heading in list {MD025}
|
||||
> # Quoted heading in list {MD022} {MD025}
|
||||
- Item
|
||||
item
|
||||
> > # Double-quoted heading in list {MD025}
|
||||
> > # Double-quoted heading in list {MD022} {MD025}
|
||||
- Item
|
||||
item
|
||||
> ## Quoted sub-heading in list
|
||||
> ## Quoted sub-heading in list {MD022}
|
||||
- Item
|
||||
- Item
|
||||
item
|
||||
> ## Quoted indented sub-heading in list {MD023}
|
||||
> ## Quoted indented sub-heading in list {MD022} {MD023}
|
||||
- Item
|
||||
|
||||
Text
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@ Some text
|
|||
```
|
||||
|
||||
* This is another case where MD023 shouldn't be triggered
|
||||
# Test {MD023} Valid heading for CommonMark (see section 5.2)
|
||||
# Test {MD023} Also valid heading for CommonMark
|
||||
# Test {MD022} {MD023} Valid heading for CommonMark (see section 5.2)
|
||||
# Test {MD022} {MD023} Also valid heading for CommonMark
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue