Skip to content

Commit 8b4dba7

Browse files
committed
revise setting inlineMath for mathjax v3
1 parent 3a12c15 commit 8b4dba7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/svg_text_utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ function texToSVG(_texString, _config, _callback) {
207207
displayAlign: 'left',
208208
});
209209
} else {
210-
if(!MathJax.config.tex) {
211-
MathJax.config.tex = {};
212-
}
213210
originalConfig = Lib.extendDeepAll({}, MathJax.config);
214-
MathJax.config.tex.inlineMath = inlineMath;
211+
212+
if(!MathJax.config.tex.inlineMath) {
213+
MathJax.config.tex.inlineMath = inlineMath;
214+
}
215215
}
216216
};
217217

0 commit comments

Comments
 (0)