Skip to content

Commit

Permalink
fix: 修复文档代码提示没有高亮
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed Mar 9, 2023
1 parent 5319516 commit 4019f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/src/component/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const Preview = ({ path, ...mdData }) => {
<Toolbar text={code} copied={getBooleanValue(param, 'copied', true)}>
{param.title || '示例'}
</Toolbar>
<Code>{code}</Code>
<Code>
<code {...rest} />
</Code>
</CodeLayout>
);
}
Expand Down

0 comments on commit 4019f54

Please sign in to comment.