Skip to content

Commit

Permalink
fix:修复预览标签
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Mar 7, 2023
1 parent 17c716e commit 5968554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/website/src/components/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Preview = (props: MarkdownProps) => {
copied={getBooleanValue(param, 'copied', true)}
background={param.background}
toolbar={param.title || '示例'}
code={<code {...rest} />}
code={<pre {...rest} />}
text={code}
>
<Child />
Expand Down

0 comments on commit 5968554

Please sign in to comment.