Skip to content

Commit 1ff20e6

Browse files
committed
website: add public/bundle.html
1 parent e0436a4 commit 1ff20e6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

public/bundle.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" crossorigin></script>
6+
<script src="https://unpkg.com/[email protected]/umd/react.development.js" crossorigin></script>
7+
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" crossorigin></script>
8+
<script src="https://unpkg.com/@uiw/codepen-require-polyfill/index.js" crossorigin></script>
9+
<link rel="stylesheet" href="https://unpkg.com/@uiw/react-markdown-preview/dist/markdown.css">
10+
</head>
11+
<body>
12+
<div id="container" style="padding: 24px"></div>
13+
<script src="https://unpkg.com/@uiw/react-markdown-preview/dist/markdown.min.js"></script>
14+
<script type="text/babel">
15+
import MarkdownPreview from '@uiw/react-markdown-preview';
16+
17+
const source = `## MarkdownPreview \n\n> todo: React component preview markdown text. `;
18+
function Demo() {
19+
return (
20+
<MarkdownPreview source={source} />
21+
);
22+
}
23+
24+
ReactDOM.render(<Demo />, document.getElementById('container'));
25+
</script>
26+
</body>
27+
</html>

0 commit comments

Comments
 (0)