Skip to content

Commit

Permalink
Merge pull request #490 from mathjax/tex-error-data
Browse files Browse the repository at this point in the history
Add TeX error as data-mjx-error, similar to compile/typeset errors
  • Loading branch information
dpvc authored Jun 15, 2020
2 parents 6f2fab4 + 4cf78bd commit 6ddbcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/input/tex/NodeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class NodeFactory {
public static createError(factory: NodeFactory, message: string): MmlNode {
let text = factory.create('text', message);
let mtext = factory.create('node', 'mtext', [], {}, text);
let error = factory.create('node', 'merror', [mtext]);
let error = factory.create('node', 'merror', [mtext], {'data-mjx-error': message});
return error;
}

Expand Down

0 comments on commit 6ddbcdb

Please sign in to comment.