Skip to content

v3.5.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Feb 06:56
· 217 commits to master since this release

v3.4.7...v3.5.0

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>