[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 Géry Debongnie
parent 247200194f
commit c8db663869
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;