mirror of
https://github.com/zadam/trilium.git
synced 2026-07-07 17:53:39 +02:00
chore(share): fix another typecheck issue
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user