User:Lianxiangru/global.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
var mathTags = $('.mwe-math-fallback-source-inline tex');
if (mathTags.length > 0){ //only do something when there's math on the page
window.MathJax = { //hook into MathJax's configuration
Line 8:
MathJax.Hub.Queue(
function(){
mathTags.removeClass('mwe-math-fallback-source-inline tex'); // .. make the span around MathML (now MathJax output) visible
}