/showdown-viz

Graphviz extension for the showdown JavaScript Markdown parser. Based on Viz.js

Primary LanguageJavaScript

showdown-viz

Graphviz extension for Showdown.

Screenshot

img

Usage

  • download and include Viz.js
  • download showdown-viz.js and include it to the html
  • registrate the extension when initializing the converter, like
var converter = new showdown.Converter({extensions: ['showdown-toc','showdown-viz']});
  • Use markdown code block with tag dot-parse, e.g.

```dot-parse

// your Graphviz code here

```

then the <pre> element generated by the code block will be replaced by the corresponded svg element.