forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mathjax.html
36 lines (36 loc) · 817 Bytes
/
mathjax.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% if page.mathjax %}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
Tex: {
equationNumbers: {
autoNumber: "AMS"
}
},
jax: ["input/TeX", "output/CommonHTML"],
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
inlineMath: [ ['$','$'], ['\\(','\\)'] ],
displayMath: [ ['$$', '$$'], ['\\[','\\]'] ],
processEscapes: true
},
CommonHTML: {
linebreaks: {
automatic: true
}
},
"HTML-CSS": {
linebreaks: {
automatic: true
}
},
SVG: {
linebreaks: {
automatic: true
}
}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
{% endif %}