This commit is contained in:
Vanessa 2022-08-28 12:44:28 +08:00
parent 3c3b612e1d
commit ae01b52ae3
9 changed files with 13 additions and 13 deletions

View file

@ -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);
}