Skip to content

Commit

Permalink
Merge pull request #422 from mathjax/issue2283
Browse files Browse the repository at this point in the history
Only record actual 'node' nodes.  mathjax/MathJax#2283.
  • Loading branch information
dpvc authored Jan 23, 2020
2 parents 1c795b8 + 1e3ce47 commit f6a4ff0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/input/tex/NodeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export class NodeFactory {
public create(kind: string, ...rest: any[]): MmlNode {
const func = this.factory[kind] || this.factory['node'];
const node = func(this, rest[0], ...rest.slice(1));
this.configuration.addNode(rest[0], node);
if (kind === 'node') {
this.configuration.addNode(rest[0], node);
}
return node;
}

Expand Down

0 comments on commit f6a4ff0

Please sign in to comment.