mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Fix range calculation in MD033/no-inline-html during re-parse of tabbed content.
This commit is contained in:
parent
48a92d41a4
commit
c53df8b720
7 changed files with 65 additions and 6 deletions
|
@ -4953,11 +4953,13 @@ module.exports = {
|
|||
var options = {
|
||||
"extensions": [{
|
||||
"disable": {
|
||||
"null": ["htmlFlow"]
|
||||
"null": ["codeIndented", "htmlFlow"]
|
||||
}
|
||||
}]
|
||||
};
|
||||
var flowTokens = parse(token.text, options);
|
||||
// Use lines instead of token.text for accurate columns
|
||||
var lines = params.lines.slice(token.startLine - 1, token.endLine).join("\n");
|
||||
var flowTokens = parse(lines, options);
|
||||
pending.push([token.startLine - 1, flowTokens]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue