mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01: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
|
|
@ -230,13 +230,13 @@ for (const rule of rules) {
|
|||
"lines_above": {
|
||||
"description": "Blank lines above heading",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"minimum": -1,
|
||||
"default": 1
|
||||
},
|
||||
"lines_below": {
|
||||
"description": "Blank lines below heading",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"minimum": -1,
|
||||
"default": 1
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -362,13 +362,13 @@
|
|||
"lines_above": {
|
||||
"description": "Blank lines above heading",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"minimum": -1,
|
||||
"default": 1
|
||||
},
|
||||
"lines_below": {
|
||||
"description": "Blank lines below heading",
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"minimum": -1,
|
||||
"default": 1
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue