KaTeX

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

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/34253/224512/KaTeX.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
黄盐
Verzija
0.0.1.20171017210240
Napravljeno
17. 10. 2017
Ažurirano
17. 10. 2017
Size
475 КБ
Licenca
Nije dostupno

在源文件中,我禁用了以下代码,使得 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/