Skip to content

Commit 4019f54

Browse files
committed
fix: 修复文档代码提示没有高亮
1 parent 5319516 commit 4019f54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

website/src/component/Preview/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ const Preview = ({ path, ...mdData }) => {
7676
<Toolbar text={code} copied={getBooleanValue(param, 'copied', true)}>
7777
{param.title || '示例'}
7878
</Toolbar>
79-
<Code>{code}</Code>
79+
<Code>
80+
<code {...rest} />
81+
</Code>
8082
</CodeLayout>
8183
);
8284
}

0 commit comments

Comments
 (0)