Skip to content
draw.io Viewer for markdown-it
JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
src
test
.babelrc
.gitignore
LICENSE
README.md
demo.html
package-lock.json
package.json
webpack.config.babel.js
yarn.lock

README.md

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
You can’t perform that action at this time.