diff --git a/website/src/theme/CodeBlock/CopyButton/index.js b/website/src/theme/CodeBlock/CopyButton/index.js index 3979ae3bafd..2e1a8a58adb 100644 --- a/website/src/theme/CodeBlock/CopyButton/index.js +++ b/website/src/theme/CodeBlock/CopyButton/index.js @@ -24,7 +24,9 @@ export default function CopyButtonWrapper(props) { const updatedProps = { ...props }; if ( updatedProps?.code?.length > 2 && - (updatedProps.code.substring(0, 2) === '$ ' || updatedProps.code.substring(0, 2) === '# ') + (updatedProps.code.substring(0, 2) === '$ ' || + updatedProps.code.substring(0, 2) === '# ' || + updatedProps.code.substring(0, 2) === '> ') ) { updatedProps.code = updatedProps.code.substring(2); }