[FIX] parser: correctly parse pre node within a div with new lines

This commit is contained in:
Lucas Perais (lpe)
2021-12-02 18:06:03 +01:00
committed by Aaron Bohy
parent c1a973a4d8
commit 3c12519277
4 changed files with 46 additions and 0 deletions
+1
View File
@@ -298,6 +298,7 @@ function parseDOMNode(node: Element, ctx: ParsingContext): AST | null {
if (tagName === "t" && !dynamicTag) {
return null;
}
ctx = Object.assign({}, ctx);
const children: AST[] = [];
if (tagName === "pre") {
ctx.inPreTag = true;