markdown-it-drawio-viewer

1.5.0 • Public • Published

markdown-it-drawio-viewer

Install

npm install --save markdown-it-drawio-viewer

Usage

  const md = require('markdown-it')()
    .use(require('markdown-it-drawio-viewer'), opts)

Important

  • Make sure to include A somewhere in the HTML
<script type="text/javascript" src="//www.draw.io/js/viewer.min.js"></script>

//www.draw.io/js/viewer.min.js can be any URL as long as it is drawio's viewer.min.js

The opts object can contain:

Name Description Default
marker marker of blockdiag block ```

Runkit Example

Use demo.html

  • Use oneliner HTTP server on Project root directory.
$ npx http-server
or
$ npm install -D http-server
$ ./node_modules/.bin/http-server

Package Sidebar

Install

npm i markdown-it-drawio-viewer

Weekly Downloads

6

Version

1.5.0

License

MIT

Unpacked Size

141 kB

Total Files

4

Last publish

Collaborators

  • kaishuu0123