Greasy Fork is available in English.

KaTeX

KaTeX 修改版, 可以工作与 兼容模式.可能会出现Bug.效果未知

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/34253/224512/KaTeX.js

Autor
黄盐
Version
0.0.1.20171017210240
Erstellt am
17.10.2017
Letzte Aktualisierung
17.10.2017
Lizenz
n/a

在源文件中,我禁用了以下代码,使得 KaTeX 在兼容模式下也能够使用.但是会出现什么错误将无法预知.


if (typeof document !== "undefined") {
    if (document.compatMode !== "CSS1Compat") {
        typeof console !== "undefined" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your " + 
         "website has a suitable doctype.");
        render = function render() {
            throw new _ParseError2.default("KaTeX doesn't work in quirks mode.");
        };
    }
}

官网:https://khan.github.io/KaTeX/