MediaWiki:Common.js:修订间差异

来自WikiEdge
跳转到导航 跳转到搜索
+MathJAX
 
无编辑摘要
第6行: 第6行:
     script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";
     script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";
     document.head.appendChild(script);
     document.head.appendChild(script);
    window.MathJax = {
        tex: {
            inlineMath: [['$', '$'], ['\\(', '\\)']]
        }
    };
})();
})();

2024年9月1日 (日) 18:51的版本

/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */

(function() {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js";
    document.head.appendChild(script);

    window.MathJax = {
        tex: {
            inlineMath: [['$', '$'], ['\\(', '\\)']]
        }
    };
})();