npm.io
1.0.0 • Published 4 years ago

docsify-graphviz

Licence
MIT
Version
1.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1

docsify-graphviz

docsify-graphviz is a docsify plugin to render DOT graphs using Graphviz, which is vendored by hpcc-js/wasm using Web-Assembly.

Usage

Add hpcc-js and this plugin in your index.html:

<script src="//unpkg.com/@hpcc-js/wasm/dist/index.min.js"></script>
<script src="//unpkg.com/docsify-graphviz@latest/dist/docsify-graphviz.js"></script>

Now you can include Graphviz diagrams in your markdown files:

```graphviz
digraph {
    A -> B
}
```

Roadmap

  • Render DOT graphs in code blocks.
  • Render DOT files by URL