Change "header" to "heading" across the library

This should be backward compatible, as all "header" aliases are still
available, though documented as discouraged for future use.
This commit is contained in:
Milos Levacic 2018-03-19 23:39:42 +01:00 committed by David Anson
parent e938f421a9
commit 45424cf459
148 changed files with 861 additions and 699 deletions

View file

@ -42,7 +42,7 @@ rules.forEach(function forRule(rule) {
case "MD025":
scheme.properties = {
"level": {
"description": "Header level",
"description": "Heading level",
"type": "integer",
"default": 1
}
@ -51,7 +51,7 @@ rules.forEach(function forRule(rule) {
case "MD003":
scheme.properties = {
"style": {
"description": "Header style",
"description": "Heading style",
"type": "string",
"enum": [
"consistent",
@ -139,8 +139,13 @@ rules.forEach(function forRule(rule) {
"type": "boolean",
"default": true
},
"headings": {
"description": "Include headings",
"type": "boolean",
"default": true
},
"headers": {
"description": "Include headers",
"description": "Include headings",
"type": "boolean",
"default": true
}
@ -218,7 +223,7 @@ rules.forEach(function forRule(rule) {
case "MD041":
scheme.properties = {
"level": {
"description": "Header level",
"description": "Heading level",
"type": "integer",
"default": 1
},
@ -231,8 +236,16 @@ rules.forEach(function forRule(rule) {
break;
case "MD043":
scheme.properties = {
"headings": {
"description": "List of headings",
"type": "array",
"items": {
"type": "string"
},
"default": null
},
"headers": {
"description": "List of headers",
"description": "List of headings",
"type": "array",
"items": {
"type": "string"