Skip to content

Instantly share code, notes, and snippets.

@ftiasch
Created September 9, 2015 05:40
Show Gist options
  • Save ftiasch/4a41a339a91b5e0ce1c2 to your computer and use it in GitHub Desktop.
Save ftiasch/4a41a339a91b5e0ce1c2 to your computer and use it in GitHub Desktop.
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