Skip to content

Commit b0628b0

Browse files
committed
A compromise solution
1 parent 6cba8e3 commit b0628b0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/fonts/mathjax_config.js

+9
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
*/
1616
if(typeof MathJax !== 'undefined') {
1717
exports.MathJax = true;
18+
19+
MathJax.Hub.Config({
20+
skipStartupTypeset: true,
21+
tex2jax: {
22+
inlineMath: [['$', '$'], ['\\(', '\\)']]
23+
},
24+
});
25+
26+
MathJax.Hub.Configured();
1827
} else {
1928
exports.MathJax = false;
2029
}

src/lib/svg_text_utils.js

-4
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ function texToSVG(_texString, _config, _callback) {
173173
return MathJax.Hub.Config({
174174
messageStyle: 'none',
175175
displayAlign: 'left',
176-
tex2jax: {
177-
inlineMath: [['$', '$'], ['\\(', '\\)']]
178-
},
179-
SVG: {font: 'STIX-Web'},
180176
});
181177
},
182178
function() {

0 commit comments

Comments
 (0)