From 91e2341f6378f9819bc3e1dfe9b7fb89288f5765 Mon Sep 17 00:00:00 2001 From: sxjeru Date: Mon, 3 Feb 2025 22:26:48 +0800 Subject: [PATCH 1/3] Update index.tsx --- src/Markdown/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdown/index.tsx b/src/Markdown/index.tsx index ab1a9fff..cbaf1100 100644 --- a/src/Markdown/index.tsx +++ b/src/Markdown/index.tsx @@ -162,7 +162,7 @@ const Markdown = memo( ...innerRemarkPluginsAhead, remarkGfm, enableLatex && remarkMath, - isChatMode && remarkBreaks, + isChatMode, ...innerRemarkPlugins, ].filter(Boolean) as any, [isChatMode, enableLatex, ...innerRemarkPluginsAhead, ...innerRemarkPlugins], From c29d497023cbc3dc12fbe8ab850f89a264eb62cc Mon Sep 17 00:00:00 2001 From: sxjeru Date: Mon, 10 Feb 2025 04:55:38 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=92=84=20style:=20update=20line=20col?= =?UTF-8?q?or=20in=20useMermaid=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Mermaid/useMermaid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mermaid/useMermaid.tsx b/src/Mermaid/useMermaid.tsx index 241854f8..be4285a3 100644 --- a/src/Mermaid/useMermaid.tsx +++ b/src/Mermaid/useMermaid.tsx @@ -15,7 +15,7 @@ export const useMermaid = (content: string) => { errorBkgColor: theme.colorError, errorTextColor: theme.colorText, fontSize: 14, - lineColor: theme.colorBorderSecondary, + lineColor: theme.colorText, primaryBorderColor: theme.colorPrimaryBorder, primaryColor: theme.colorPrimaryBg, primaryTextColor: theme.colorText, From fd72e162c5f44c5665d4e6adc15e21c4f6000bb1 Mon Sep 17 00:00:00 2001 From: sxjeru Date: Mon, 10 Feb 2025 13:00:11 +0800 Subject: [PATCH 3/3] Update index.tsx --- src/Markdown/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Markdown/index.tsx b/src/Markdown/index.tsx index cbaf1100..ab1a9fff 100644 --- a/src/Markdown/index.tsx +++ b/src/Markdown/index.tsx @@ -162,7 +162,7 @@ const Markdown = memo( ...innerRemarkPluginsAhead, remarkGfm, enableLatex && remarkMath, - isChatMode, + isChatMode && remarkBreaks, ...innerRemarkPlugins, ].filter(Boolean) as any, [isChatMode, enableLatex, ...innerRemarkPluginsAhead, ...innerRemarkPlugins],