mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 15:24:24 +01:00
chore(share): fix another typecheck issue
Some checks are pending
Checks / main (push) Waiting to run
Some checks are pending
Checks / main (push) Waiting to run
This commit is contained in:
parent
0c399a676a
commit
1182592fc5
@ -9,6 +9,8 @@ export default async function setupMath() {
|
|||||||
const renderMathInElement = (await import("katex/contrib/auto-render")).default;
|
const renderMathInElement = (await import("katex/contrib/auto-render")).default;
|
||||||
await import("katex/contrib/mhchem");
|
await import("katex/contrib/mhchem");
|
||||||
|
|
||||||
renderMathInElement(document.getElementById("content"));
|
const contentEl = document.getElementById("content");
|
||||||
|
if (!contentEl) return;
|
||||||
|
renderMathInElement(contentEl);
|
||||||
document.body.classList.add("math-loaded");
|
document.body.classList.add("math-loaded");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user