From b311261ae2906f20ba4f53fc93f4aa6c24523d05 Mon Sep 17 00:00:00 2001 From: uoyniXnaH Date: Sun, 3 Mar 2024 14:49:36 +0900 Subject: [PATCH] replace formula delimiters to support mathjax style --- src/components/Chat/ChatContent/Message/View/ContentView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Chat/ChatContent/Message/View/ContentView.tsx b/src/components/Chat/ChatContent/Message/View/ContentView.tsx index ad4c415a9..e1f7522f8 100644 --- a/src/components/Chat/ChatContent/Message/View/ContentView.tsx +++ b/src/components/Chat/ChatContent/Message/View/ContentView.tsx @@ -129,7 +129,7 @@ const ContentView = memo( p, }} > - {content} + {content.replace(/\\\[/g, '$$').replace(/\\\]/g, '$$').replace(/\\\(/g, '$').replace(/\\\)/g, '$')} ) : ( {content}