mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 01:44:07 +01:00
🚨
This commit is contained in:
parent
a3ec6b2f53
commit
e9a69cc240
4 changed files with 43 additions and 43 deletions
|
|
@ -10,7 +10,7 @@ declare const katex: {
|
|||
output: string;
|
||||
macros: IObject;
|
||||
trust: boolean;
|
||||
strict: (errorCode:string) => 'ignore' | 'warn';
|
||||
strict: (errorCode:string) => "ignore" | "warn";
|
||||
}): string;
|
||||
};
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ export const mathRender = (element: Element, cdn = Constants.PROTYLE_CDN, maxWid
|
|||
output: "html",
|
||||
macros,
|
||||
trust: true, // REF: https://katex.org/docs/supported#html
|
||||
strict: (errorCode) => errorCode === 'unicodeTextInMathMode' ? 'ignore' : 'warn',
|
||||
strict: (errorCode) => errorCode === "unicodeTextInMathMode" ? "ignore" : "warn",
|
||||
});
|
||||
renderElement.classList.remove("ft__error");
|
||||
const blockElement = hasClosestBlock(mathElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue