2025-03-14 21:59:59 -06:00
|
|
|
# mmdc
|
|
|
|
|
|
|
|
|
|
> CLI for mermaid, a diagram generation tool with a domain-specific language.
|
|
|
|
|
> A mermaid definition file is taken as input and a SVG, PNG, or PDF file is generated as output.
|
|
|
|
|
> More information: <https://mermaid-js.github.io/mermaid/>.
|
|
|
|
|
|
|
|
|
|
- Convert a file to the specified format (automatically determined from the file extension):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify the theme of the chart:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-t|--theme]}} {{forest|dark|neutral|default}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-b|--backgroundColor]}} {{color}}`
|