We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598cb5b commit 650f400Copy full SHA for 650f400
src/theme/CodeBlock/index.tsx
@@ -13,7 +13,7 @@ import type { ReferenceCodeBlockProps } from '../types'
13
14
const componentWrapper = (Component: typeof CodeBlock) => {
15
const WrappedComponent = (props: ReferenceCodeBlockProps) => {
16
- if (props.reference) {
+ if (props.reference || props.metastring?.split(' ').includes('reference')) {
17
return (
18
<ReferenceCodeBlock {...props} />
19
);
0 commit comments