21 lines
534 B
Plaintext
21 lines
534 B
Plaintext
|
<script type="text/javascript" src="<%- theme.plugins.mathjax.js %>"></script>
|
||
|
<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>
|