mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
33 lines
564 B
Markdown
33 lines
564 B
Markdown
# mermaid-cli
|
|
|
|
CLI for mermaid. Takes a mermaid definition file as input and generates an `svg`, `png` or `pdf` file as output.
|
|
|
|
## Table of contents <!-- omit in toc -->
|
|
|
|
1. [TL;DR](#tldr)
|
|
1. [Further readings](#further-readings)
|
|
|
|
## TL;DR
|
|
|
|
```sh
|
|
# Installation.
|
|
npm install -g '@mermaid-js/mermaid-cli'
|
|
|
|
# Convert mermaid files to SVG.
|
|
mmdc -i 'input.mmd' -o 'output.svg'
|
|
```
|
|
|
|
## Further readings
|
|
|
|
- [mermaid.js]
|
|
|
|
<!--
|
|
References
|
|
-->
|
|
|
|
<!-- Upstream -->
|
|
[github]: https://github.com/mermaid-js/mermaid-cli
|
|
|
|
<!-- Knowledge base -->
|
|
[mermaid.js]: mermaid.js.md
|