Skip to content

Commit ea9ae00

Browse files
committed
fix: pass the right code to the copy button
1 parent f696ddf commit ea9ae00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Code/Code.Server.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async function CodeBlock(props: Props) {
4141
pre: (props: any) => (
4242
<CodeBlockComponent
4343
{...props}
44+
code={props.children}
4445
fileName={props.fileName}
4546
className={props.className}
4647
></CodeBlockComponent>

0 commit comments

Comments
 (0)