mermaid2html

0.1.0 • Public • Published

mermaid2html

Simple CLI converter from markdown containing mermaid to HTML.

Under the hood it uses markdown-it to convert from markdown to HTML with the mardown-it-mermaid-pro plugin to convert mermaid to <svg> graphs.

Install

npm install -g mermaid2html

Usage help

usage: mermaid2html [-h] [-v] [-o OUTPUT] [-i INPUT]

Optional arguments:  
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -o OUTPUT, --output OUTPUT
                        Folder to write the html ouput to. Defaults to '.
                        /html' (Note: the output folder will be purged
                        beforehand, so be careful to not accidentally specify
                        a folder where you might have something useful)
  -i INPUT, --input INPUT
                        Source folder path, eg: './docs'. Defaults to './'

Author

License

MIT

Package Sidebar

Install

npm i mermaid2html

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.53 kB

Total Files

4

Last publish

Collaborators

  • rpocaznoi