Fix bug handling HTML embedded in a table.

This commit is contained in:
David Anson 2016-02-10 22:08:50 -08:00
parent 5877f4b590
commit e60e16baf0
3 changed files with 26 additions and 5 deletions

View file

@ -464,11 +464,8 @@ module.exports = [
} else if (token.type === "inline") {
token.content.split(shared.newLineRe)
.forEach(function forLine(line, offset) {
if (token.map && /^(-+|=+)\s*$/.test(line)) {
var seTextLineNumber = token.map[0] + offset;
if (seTextLineNumber > 0) {
errors.push(seTextLineNumber);
}
if (token.map && /^(-+|=+)\s*$/.test(line) && offset) {
errors.push(token.map[0] + offset);
}
});
}