mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +01:00
🚨
This commit is contained in:
parent
3c3b612e1d
commit
ae01b52ae3
9 changed files with 13 additions and 13 deletions
|
|
@ -37,7 +37,7 @@ export const mathRender = (element: Element, cdn = Constants.PROTYLE_CDN, maxWid
|
|||
}
|
||||
let macros = {};
|
||||
try {
|
||||
macros = JSON.parse(window.siyuan.config.editor.katexMacros || "{}")
|
||||
macros = JSON.parse(window.siyuan.config.editor.katexMacros || "{}");
|
||||
} catch (e) {
|
||||
console.warn("KaTex macros is not JSON", e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue