Enhance MD022/blanks-around-headings with lines_above/lines_below parameters (fixes #143).

This commit is contained in:
David Anson 2019-03-24 21:50:56 -07:00
parent debc08bca1
commit fa04d29485
24 changed files with 278 additions and 24 deletions

View file

@ -151,6 +151,20 @@ rules.forEach(function forRule(rule) {
}
};
break;
case "MD022":
scheme.properties = {
"lines_above": {
"description": "Blank lines above heading",
"type": "integer",
"default": 1
},
"lines_below": {
"description": "Blank lines below heading",
"type": "integer",
"default": 1
}
};
break;
case "MD024":
scheme.properties = {
"allow_different_nesting": {