Difference between revisions of "MediaWiki:Common.js"

From CUGC Wiki
(Enable MathJax typesetting on edit preview pages.)
(No difference)

Revision as of 15:47, 12 March 2019

/* Any JavaScript here will be loaded for all users on every page load. */

// MathJax typesetting in edit previews
mw.hook('wikipage.content').add(function ($content) {
  MathJax.Hub.Queue(["Typeset", MathJax.Hub, $content]);
});