Created
July 24, 2012 03:36
-
-
Save zettoone/3167864 to your computer and use it in GitHub Desktop.
Jekyll MathJax Template Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- MathJax Section --> | |
<script type="text/javascript" | |
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | |
<script> | |
MathJax.Hub.Config({ | |
tex2jax: { | |
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'] | |
} | |
}); | |
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment