@bytemd/plugin-mermaid

ByteMD plugin to support Mermaid diagram

Usage no npm install needed!

<script type="module">
  import bytemdPluginMermaid from 'https://cdn.skypack.dev/@bytemd/plugin-mermaid';
</script>

README

@bytemd/plugin-mermaid

npm

ByteMD plugin to support Mermaid diagram

Usage

import { Editor } from 'bytemd'
import mermaid from '@bytemd/plugin-mermaid'

new Editor({
  target: document.body,
  props: {
    plugins: [
      mermaid(),
      // ... other plugins
    ],
  },
})

License

MIT