We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c431e57 + 500c1b1 commit 1ff9d60Copy full SHA for 1ff9d60
lib/main.js
@@ -537,7 +537,7 @@ function GetMML(result) {
537
}
538
539
try {
540
- if (data.mml) result.mml = jax.root.toMathML('',jax);
+ result.mml = jax.root.toMathML('',jax);
541
if (data.mmlNode) result.mmlNode = jsdom(result.mml).body.firstChild;
542
} catch(err) {
543
if (!err.restart) {throw err;} // an actual error
test/issue277.js
@@ -0,0 +1,16 @@
1
+var tape = require('tape');
2
+var mjAPI = require("../lib/main.js");
3
+
4
+tape('mmlNode should enable mml', function(t) {
5
+ t.plan(1);
6
+ mjAPI.start();
7
+ var tex = 'x';
8
9
+ mjAPI.typeset({
10
+ math: tex,
11
+ format: "TeX",
12
+ mmlNode: true
13
+ }, function(data) {
14
+ t.ok(data.mml, 'MathML generated');
15
+ });
16
+});
0 commit comments