diff --git a/src/components/mdx/components/code.tsx b/src/components/mdx/components/code.tsx index 8273840c..9872533d 100644 --- a/src/components/mdx/components/code.tsx +++ b/src/components/mdx/components/code.tsx @@ -56,8 +56,13 @@ export const Code: React.FC< const CopyIcon = hasCopied ? ClipboardCheckIcon : BaseCopyIcon; return ( - - + + - {children} + + {codeString} + + + {children} + @@ -116,6 +139,9 @@ export const Code: React.FC< px={space('base')} py={lines === 1 ? '10px' : space('base')} display={['none', 'none', 'flex']} + style={{ + pointerEvents: 'none', + }} >