nodebb-plugin-katex2 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/static/js/render.js +4 -4
package/package.json
CHANGED
package/static/js/render.js
CHANGED
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
function isKatexReady() {
|
|
44
44
|
return (
|
|
45
45
|
typeof window.katex !== "undefined" &&
|
|
46
|
-
typeof window.katex.render === "function"
|
|
47
|
-
typeof window.renderMathInElement === "function" &&
|
|
48
|
-
typeof window.katex.__parse !== "undefined" // внутренняя проверка
|
|
46
|
+
typeof window.katex.render === "function"
|
|
47
|
+
// typeof window.renderMathInElement === "function" &&
|
|
48
|
+
// typeof window.katex.__parse !== "undefined" // внутренняя проверка
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
await loadScript(basePath + "katex.min.js");
|
|
200
200
|
|
|
201
201
|
// 3. Ждем инициализации katex
|
|
202
|
-
await waitForKatex();
|
|
202
|
+
await waitForKatex(10000);
|
|
203
203
|
|
|
204
204
|
// Параллельная загрузка всех ресурсов
|
|
205
205
|
await Promise.all([
|