mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
chore(share): fix another typecheck issue
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;
|
||||
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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user