Open main menu

CUGC Wiki β

Changes

MediaWiki:Common.js

5 bytes added, 16:27, 12 March 2019
Don't use $content as there are errors in MathJax using it (TypeError: c.nodeName is undefined).
console.log($content);
// delay as wikipage.content is fired before $content is added to the page
setTimeout(MathJax.Hub.Queue(["Typeset", MathJax.Hub, $content"wikiPreview"]).execute, 1000);
console.log('Found MathJax; typeset done.');
}