Update MD043/required-headings to add match_case parameter (fixes #613).

This commit is contained in:
Mateus Ferreira 2022-10-22 03:15:50 -04:00 committed by GitHub
parent 592a42b0cb
commit 37f74ee958
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 125 additions and 6 deletions

View file

@ -228,7 +228,9 @@
// List of headings
"headings": [],
// List of headings
"headers": []
"headers": [],
// Match case of headings
"match_case": false
},
// MD044/proper-names - Proper names should have the correct capitalization

View file

@ -208,6 +208,8 @@ MD043:
headings: []
# List of headings
headers: []
# Match case of headings
match_case: false
# MD044/proper-names - Proper names should have the correct capitalization
MD044:

View file

@ -395,6 +395,11 @@ for (const rule of rules) {
"pattern": "^(\\*|\\+|#{1,6} .*)$"
},
"default": []
},
"match_case": {
"description": "Match case of headings",
"type": "boolean",
"default": false
}
};
break;

View file

@ -751,6 +751,11 @@
"pattern": "^(\\*|\\+|#{1,6} .*)$"
},
"default": []
},
"match_case": {
"description": "Match case of headings",
"type": "boolean",
"default": false
}
},
"additionalProperties": false