24 lines
760 B
Plaintext
24 lines
760 B
Plaintext
{% if theme.mathjax.enable %}
|
|
{% if not theme.mathjax.per_page or (page.total or page.mathjax) %}
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
tex2jax: {
|
|
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
|
|
processEscapes: true,
|
|
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<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>
|
|
<script type="text/javascript" src="{{ theme.mathjax.cdn }}"></script>
|
|
{% endif %}
|
|
{% endif %}
|