Skip to content

Commit 9ad82b9

Browse files
committed
Fixed syntax highlight issue
1 parent d26cec1 commit 9ad82b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/PreCodeBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function PreCodeBlock({ children, ...props }: PreProps) {
7979
<div className="relative">
8080
<pre className="pt-12" data-language={lang} data-theme={dataTheme}>
8181
<CopyButton lang={lang} text={codeContent} />
82-
{codeContent}
82+
{children}
8383
</pre>
8484
</div>
8585
)

0 commit comments

Comments
 (0)