Skip to content

Commit

Permalink
website: Fix codePen options errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 26, 2022
1 parent b946dd5 commit cc1d6c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/Markdown/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Code({ version, dependencies, codePen, codeSandbox, ...o
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/react-layout@${version}/dist/uiw.min.css`,
css_external: `https://unpkg.com/@uiw/react-layout@${version}/dist/layout.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`,
};
}
Expand Down

0 comments on commit cc1d6c8

Please sign in to comment.