mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:10:53 +08:00
27 lines
759 B
Plaintext
27 lines
759 B
Plaintext
script(type="text/x-mathjax-config").
|
|
MathJax.Hub.Config({
|
|
tex2jax: {
|
|
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
|
processEscapes: true,
|
|
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
|
},
|
|
CommonHTML: {
|
|
linebreaks: { automatic: true, width: "90% container" }
|
|
},
|
|
"HTML-CSS": {
|
|
linebreaks: { automatic: true, width: "90% container" }
|
|
},
|
|
"SVG": {
|
|
linebreaks: { automatic: true, width: "90% container" }
|
|
}
|
|
});
|
|
|
|
script(type="text/x-mathjax-config").
|
|
MathJax.Hub.Queue(function() {
|
|
var all = MathJax.Hub.getAllJax(), i;
|
|
for (i=0; i < all.length; i += 1) {
|
|
all[i].SourceElement().parentNode.className += ' has-jax';
|
|
}
|
|
});
|
|
|
|
script(src=theme.mathjax.cdn) |