Remove newly-dead code due to multi-line setext header support in markdown-it.

This commit is contained in:
David Anson 2016-06-23 22:53:42 -07:00
parent c1956afd66
commit cfef715ed3

View file

@ -469,13 +469,6 @@ module.exports = [
}
} else if (token.type === "heading_close") {
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 (needBlankLine) {