mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Clarify MD043/required-headers reporting of extra header.
This commit is contained in:
parent
31206f9387
commit
15b37d51ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1088,7 +1088,7 @@ module.exports = [
|
|||
forEachHeading(params, function forHeading(heading, content) {
|
||||
if (!errors.length) {
|
||||
var actual = levels[heading.tag] + " " + content;
|
||||
var expected = requiredHeaders[i++] || "";
|
||||
var expected = requiredHeaders[i++] || "[None]";
|
||||
if (expected === "*") {
|
||||
optional = true;
|
||||
} else if (expected.toLowerCase() === actual.toLowerCase()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue