252
edits
Changes
From CUGC Wiki
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.');
}