forked from phoenixcw/hexo-renderer-mathjax
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mathjax-v3.html
37 lines (30 loc) · 944 Bytes
/
mathjax-v3.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
37
<script type="text/x-mathjax-config">
window.MathJax = {
tex: {
inlineMath: [ ["$","$"], ["\\(","\\)"] ],
processEscapes: true,
autoload: {
color: [],
colorv2: ['color']
},
packages: {'[+]': ['noerrors']}
},
options: {
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/noerrors']
}
};
MathJax.Hub = {
Queue: function () {
var all = MathJax.Hub.getAllJax();
for (var i = 0; i < all.length; ++i){
all[i].SourceElement().parentNode.className += ' has-jax';
}
return MathJax.startup.promise;
}
};
</script>