hexo-theme-stellar/layout/_plugins/mathjax.ejs

21 lines
517 B
Plaintext
Raw Normal View History

2024-02-12 23:07:56 +08:00
<script type="text/javascript" src="<%- conf.js %>"></script>
2024-01-04 10:54:18 +08:00
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
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>