diff --git a/src/theme/CodeBlock/index.tsx b/src/theme/CodeBlock/index.tsx index dbd5bb5..6838bdc 100644 --- a/src/theme/CodeBlock/index.tsx +++ b/src/theme/CodeBlock/index.tsx @@ -13,7 +13,7 @@ import type { ReferenceCodeBlockProps } from '../types' const componentWrapper = (Component: typeof CodeBlock) => { const WrappedComponent = (props: ReferenceCodeBlockProps) => { - if (props.reference) { + if (props.reference || props.metastring?.split(' ').includes('reference')) { return ( );