Skip to content

Commit e3a1f31

Browse files
authored
Update mathjax.html
1 parent 551145e commit e3a1f31

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

_includes/mathjax.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
<!--
2-
Author: Ray-Eldath
3-
refer to:
4-
- http://docs.mathjax.org/en/latest/options/index.html
5-
-->
61
{% if site.mathjax %}
72
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
8-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
3+
<script id="MathJax-script" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
94
<script type="text/x-mathjax-config">
105
MathJax.Hub.Config({
116
jax: ["input/TeX", "output/HTML-CSS"],
127
tex2jax: {
13-
inlineMath: [ ["$", "$"] ],
14-
displayMath: [ ["$$", "$$"] ],
8+
inlineMath: [['$', '$'], ["\\(", "\\)"]],
9+
processEscapes: true,
1510
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
1611
},
1712
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] }
1813
});
1914
</script>
20-
{% endif %}
15+
{% endif %}

0 commit comments

Comments
 (0)