v3.5.0
- 🌟 feat: output bundle file. 197280f @jaywcjlove
- 💄 chore: update workflows config. 19fc823 @jaywcjlove
- 💄 chore: update workflows config. 3452cdf @jaywcjlove
- 📖 doc: Update README.md f3e92b9 @jaywcjlove
- 🌟 feat: add pluginsFilter props. ba0598c @jaywcjlove
npm i @uiw/[email protected]
Bundle Example: https://uiwjs.github.io/react-markdown-preview/bundle.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/@uiw/codepen-require-polyfill/index.js" crossorigin></script>
<link rel="stylesheet" href="https://unpkg.com/@uiw/react-markdown-preview/dist/markdown.css">
</head>
<body>
<div id="container" style="padding: 24px"></div>
<script src="https://unpkg.com/@uiw/react-markdown-preview/dist/markdown.min.js"></script>
<script type="text/babel">
import MarkdownPreview from '@uiw/react-markdown-preview';
const source = `## MarkdownPreview \n\n> todo: React component preview markdown text. `;
function Demo() {
return (
<MarkdownPreview source={source} />
);
}
ReactDOM.render(<Demo />, document.getElementById('container'));
</script>
</body>
</html>