File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments