mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
first commit
This commit is contained in:
27
layout/includes/third-party/mathjax.pug
vendored
Normal file
27
layout/includes/third-party/mathjax.pug
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user