Skip to content

Commit c4d8354

Browse files
committed
migrate mathjax support from v2/v3 to v3/v4
1 parent 2646ffd commit c4d8354

12 files changed

Lines changed: 4557 additions & 2961 deletions

File tree

devtools/test_dashboard/index-mathjax3chtml.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,7 @@
4949
options.format = svgDocument.inputJax[0].name;
5050
return svgDocument.convert(math, options);
5151
};
52-
/*
53-
MathJax.tex2svgPromise = (math, options = {}) => {
54-
options.format = svgDocument.inputJax[0].name;
55-
return mathjax.handleRetriesFor(() => svgDocument.convert(math, options));
56-
};
57-
*/
52+
5853
MathJax.svgStylesheet = () => svgOutput.styleSheet(svgDocument);
5954
}
6055
}

devtools/test_dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- Update UI elements if strict mode is enabled -->
2828
<script src="./strict.js"></script>
2929

30-
<script src="../../node_modules/@plotly/mathjax-v2/MathJax.js?config=TeX-AMS-MML_SVG"></script>
30+
<script src="../../node_modules/@plotly/mathjax-v4/tex-svg.js"></script>
3131
<script charset="utf-8" id="source" src="../../build/plotly.js"></script>
3232
<script charset="utf-8" src="../../build/test_dashboard-bundle.js"></script>
3333
</body>

0 commit comments

Comments
 (0)