Skip to content

Commit

Permalink
Fix issue with textmacros in SVG mode. (mathjax/MathJax#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Sep 6, 2020
1 parent d4b8ff6 commit c10a967
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ts/input/tex/textmacros/TextParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ export class TextParser extends TexParser {
NodeUtil.setAttribute(mml, name, env[name]);
}
}
this.nodes.push(mml);
if (mml.isKind('inferredMrow')) {
mml.childNodes.forEach(child => this.nodes.push(child as MmlNode));
} else {
this.nodes.push(mml);
}
}

/**
Expand Down

0 comments on commit c10a967

Please sign in to comment.