Skip to content

Commit

Permalink
Only record actual 'node' nodes. Resolves issue mathjax/MathJax#2283.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpvc committed Jan 9, 2020
1 parent 4879222 commit 1e3ce47
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 1e3ce47

Please sign in to comment.