Skip to content

Commit

Permalink
website: update markdown preview issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 26, 2022
1 parent 6af5321 commit 65cb632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/src/Markdown/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export default function Code({ version, dependencies, codePen, codeSandbox, ...o
const props: CodePreviewProps = { ...other };
if (codePen) {
props.codePenOption = {
title: `uiw${version} - demo`,
includeModule: ['uiw'],
title: `@uiw/react-layout${version} - demo`,
includeModule: ['@uiw/react-layout'],
js: (props.code || '').replace('_mount_', 'document.getElementById("container")'),
html: '<div id="container" style="padding: 24px"></div>',
css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,
js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,
css_external: `https://unpkg.com/@uiw/react-layout@${version}/dist/uiw.min.css`,
js_external: `https://unpkg.com/react@17.x/umd/react.development.js;https://unpkg.com/react-dom@17.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/@uiw/react-layout@${version}/dist/layout.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.1.3/index.js`,
};
}
if (codeSandbox) {
Expand Down

0 comments on commit 65cb632

Please sign in to comment.