mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Remove newly-dead code due to multi-line setext header support in markdown-it.
This commit is contained in:
parent
c1956afd66
commit
cfef715ed3
1 changed files with 0 additions and 7 deletions
|
|
@ -469,13 +469,6 @@ module.exports = [
|
||||||
}
|
}
|
||||||
} else if (token.type === "heading_close") {
|
} else if (token.type === "heading_close") {
|
||||||
needBlankLine = true;
|
needBlankLine = true;
|
||||||
} else if (token.type === "inline") {
|
|
||||||
token.content.split(shared.newLineRe)
|
|
||||||
.forEach(function forLine(line, offset) {
|
|
||||||
if (token.map && /^(-+|=+)\s*$/.test(line) && offset) {
|
|
||||||
errors.push(token.map[0] + offset);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
if (token.map) {
|
if (token.map) {
|
||||||
if (needBlankLine) {
|
if (needBlankLine) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue