1.0.0 • Published 1 year ago

wysimark-standalone v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

A standalone package to re-bundle Wysimark so that it can be loaded directly from the web, e.g. web components

<html>
  <head>
    <script src="https://www.unpkg.com/wysimark-standalone/dist/javascript/index.cjs.js"></script>
  </head>
  <body>
    <div id="editor-container"></div>
    <script>
      const container = document.getElementById("editor-container")
      // createWysimark is available on window now
      const wysimark = createWysimark(container, {
        initialMarkdown: "# Hello World",
      })
    </script>
  </body>
</html>