mathjax: Update.
This commit is contained in:
parent
55082d124a
commit
73f4f96c47
1 changed files with 14 additions and 28 deletions
|
|
@ -1,28 +1,14 @@
|
||||||
<script type="text/javascript" async
|
<script>
|
||||||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
window.MathJax = {
|
||||||
MathJax.Hub.Config({
|
tex: {
|
||||||
tex2jax: {
|
|
||||||
inlineMath: [['$','$'], ['\\(','\\)']],
|
inlineMath: [['$','$'], ['\\(','\\)']],
|
||||||
displayMath: [['$$','$$']],
|
displayMath: [['$$','$$']],
|
||||||
processEscapes: true,
|
processEscapes: true,
|
||||||
processEnvironments: true,
|
processEnvironments: true
|
||||||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
},
|
||||||
TeX: { equationNumbers: { autoNumber: "AMS" },
|
options: {
|
||||||
extensions: ["AMSmath.js", "AMSsymbols.js"] }
|
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
MathJax.Hub.Queue(function() {
|
|
||||||
// Fix <code> tags after MathJax finishes running. This is a
|
|
||||||
// hack to overcome a shortcoming of Markdown. Discussion at
|
|
||||||
// https://github.com/mojombo/jekyll/issues/199
|
|
||||||
var all = MathJax.Hub.getAllJax(), i;
|
|
||||||
for(i = 0; i < all.length; i += 1) {
|
|
||||||
all[i].SourceElement().parentNode.className += ' has-jax';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
MathJax.Hub.Config({
|
|
||||||
// Autonumbering by mathjax
|
|
||||||
TeX: { equationNumbers: { autoNumber: "AMS" } }
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.min.js" id="MathJax-script"></script>
|
||||||
Loading…
Add table
Reference in a new issue