User:Pietroglyph/timeless.js

// importScript("User:Esquivalience/mathjax.js");

const mathElements = $(".tex"); if (mathElements.length > 0) { MathJax = { tex: { inlineMath: ', ' },	 svg: { fontCache: 'global' }	};	mw.loader.load("https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"); const changeDisplayMode = function(displayStyle) { mathElements.filter(".mwe-math-fallback-source-" + displayStyle) .removeClass("mwe-math-fallback-source-" + displayStyle) .addClass("mwe-math-fallback-image-" + displayStyle); }	changeDisplayMode("inline"); changeDisplayMode("display"); }