This is an automated email from the ASF dual-hosted git repository.

robin0716 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git

commit 4cc9dc40ae587374536df4273e45d5e828f67d31
Author: robin <[email protected]>
AuthorDate: Mon Jul 1 18:22:04 2024 +0800

    fix(editor-formula): Fix the page freeze problem caused by incorrect formula
---
 editor-formula/hooks.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/editor-formula/hooks.ts b/editor-formula/hooks.ts
index 3c916c2..df350b2 100644
--- a/editor-formula/hooks.ts
+++ b/editor-formula/hooks.ts
@@ -39,6 +39,7 @@ const useRenderFormula = (element: HTMLElement | 
RefObject<HTMLElement> | null)
         { left: '\\(', right: '\\)', display: false },
         { left: '\\[', right: '\\]', display: true },
       ],
+      throwOnError: false,
     });
   };
   useEffect(() => {

Reply via email to