Skip to content

Commit

Permalink
Update mathjax.html
Browse files Browse the repository at this point in the history
  • Loading branch information
TangLongbin authored Nov 2, 2023
1 parent 551145e commit e3a1f31
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions _includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
<!--
Author: Ray-Eldath
refer to:
- http://docs.mathjax.org/en/latest/options/index.html
-->
{% if site.mathjax %}
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script id="MathJax-script" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ["$", "$"] ],
displayMath: [ ["$$", "$$"] ],
inlineMath: [['$', '$'], ["\\(", "\\)"]],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
},
"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"] }
});
</script>
{% endif %}
{% endif %}

0 comments on commit e3a1f31

Please sign in to comment.