Anonymous

Changes

From CUGC Wiki

MediaWiki:Common.js

3 bytes added, 16:23, 12 March 2019
Use $content as #wikiPreview is not available when hook is fired.
// MathJax typesetting in edit previews
function mathJaxTypeset($content) {
function waitForMathJax() {
if (typeof MathJax === 'undefined') {
console.log('Waiting for MathJax.');
} else {
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "wikiPreview"$content]).execute();
alert('Found MathJax; typeset done.');
}