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}
-
-