mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update MD022/blanks-around-headings to allow passing -1 for lines_above/lines_below to allow any number of blank lines in that direction (fixes #546).
This commit is contained in:
parent
f079df140c
commit
809841098d
12 changed files with 273 additions and 58 deletions
|
@ -836,7 +836,9 @@ Some more text
|
|||
```
|
||||
|
||||
The `lines_above` and `lines_below` parameters can be used to specify a
|
||||
different number of blank lines (including 0) above or below each heading.
|
||||
different number of blank lines (including `0`) above or below each heading. If
|
||||
the value `-1` is used for either parameter, any number of blank lines is
|
||||
allowed.
|
||||
|
||||
Note: If `lines_above` or `lines_below` are configured to require more than one
|
||||
blank line, [MD012/no-multiple-blanks](md012.md) should also be customized.
|
||||
|
|
|
@ -36,7 +36,9 @@ Some more text
|
|||
```
|
||||
|
||||
The `lines_above` and `lines_below` parameters can be used to specify a
|
||||
different number of blank lines (including 0) above or below each heading.
|
||||
different number of blank lines (including `0`) above or below each heading. If
|
||||
the value `-1` is used for either parameter, any number of blank lines is
|
||||
allowed.
|
||||
|
||||
Note: If `lines_above` or `lines_below` are configured to require more than one
|
||||
blank line, [MD012/no-multiple-blanks](md012.md) should also be customized.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue