From c3c3dd51546f1b533422ae2a1fe4c5ab1ce0a2c0 Mon Sep 17 00:00:00 2001 From: lyf <1910527151@qq.com> Date: Mon, 12 Aug 2024 14:06:21 +0800 Subject: [PATCH] feature add zhedie --- app/components/markdown.tsx | 31 +++++++++++-------------------- app/styles/globals.scss | 3 ++- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx index ec413e51a..5515164c4 100644 --- a/app/components/markdown.tsx +++ b/app/components/markdown.tsx @@ -124,25 +124,18 @@ export function PreCode(props: { children: any }) { return ( <> -
-
+         {
+            if (ref.current) {
+              const code = ref.current.innerText;
+              copyToClipboard(code);
+            }
           }}
-        >
-           {
-              if (ref.current) {
-                const code = ref.current.innerText;
-                copyToClipboard(code);
-              }
-            }}
-          >
-          {props.children}
-        
-
+ > + {props.children} + {mermaidCode.length > 0 && ( )} @@ -243,8 +236,6 @@ function _MarkDownContent(props: { content: string }) { return escapeBrackets(escapeDollarNumber(props.content)); }, [props.content]); - console.log(escapedContent, 11233); - return (