Skip to content

Commit c78580c

Browse files
Fixed syntax highlight issue (#730)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval Although pull request approval is not enforced for this repository in order to reduce friction, merging without a review will generate a ticket for the docs team to review your changes. So if possible, have your pull request approved before merging. Co-authored-by: Maedah Batool <[email protected]>
1 parent c3e024b commit c78580c

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)