|
1 | 1 | {% if theme.mathjax %}
|
2 |
| -<script type="text/x-mathjax-config"> |
3 |
| - MathJax.Hub.Config({ |
4 |
| - tex2jax: { |
5 |
| - inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
6 |
| - processEscapes: true, |
7 |
| - skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'] |
8 |
| - } |
9 |
| - }); |
10 |
| -</script> |
| 2 | + <script type="text/x-mathjax-config"> |
| 3 | + MathJax.Hub.Config({ |
| 4 | + tex2jax: { |
| 5 | + inlineMath: [ ['$','$'], ["\\(","\\)"] ], |
| 6 | + processEscapes: true, |
| 7 | + skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'] |
| 8 | + } |
| 9 | + }); |
| 10 | + </script> |
11 | 11 |
|
12 |
| -<script type="text/x-mathjax-config"> |
13 |
| - MathJax.Hub.Queue(function() { |
14 |
| - var all = MathJax.Hub.getAllJax(), i; |
15 |
| - for (i=0; i < all.length; i += 1) { |
16 |
| - all[i].SourceElement().parentNode.className += ' has-jax'; |
17 |
| - } |
18 |
| - }); |
19 |
| -</script> |
20 |
| - |
21 |
| -<script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/MathJax.js"></script> |
22 |
| -<script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/config/TeX-AMS-MML_HTMLorMML.js"></script> |
| 12 | + <script type="text/x-mathjax-config"> |
| 13 | + MathJax.Hub.Queue(function() { |
| 14 | + var all = MathJax.Hub.getAllJax(), i; |
| 15 | + for (i=0; i < all.length; i += 1) { |
| 16 | + all[i].SourceElement().parentNode.className += ' has-jax'; |
| 17 | + } |
| 18 | + }); |
| 19 | + </script> |
23 | 20 |
|
| 21 | + {% if config.language === 'zh-Hans' %} |
| 22 | + <script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/MathJax.js"></script> |
| 23 | + <script type="text/javascript" src="http://cdn.staticfile.org/mathjax/2.4.0/config/TeX-AMS-MML_HTMLorMML.js"></script> |
| 24 | + {% else %} |
| 25 | + <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
| 26 | + {% endif %} |
24 | 27 | {% endif %}
|
0 commit comments