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 (