Created
September 9, 2015 05:40
-
-
Save ftiasch/4a41a339a91b5e0ce1c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
window.MathJax = { | |
tex2jax: { | |
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | |
showProcessingMessages: false, | |
processEscapes: true, | |
processSectionDelay: 0 | |
} | |
}; | |
$.getScript("https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML", function() { | |
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver; | |
var observer = new MutationObserver(function(mutations, observer) { | |
setInterval(function() { | |
MathJax.Hub.Queue(["Typeset", MathJax.Hub]); | |
}, 1000); | |
}); | |
observer.observe(document.querySelector('#app'), { | |
attributes: true | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment