1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 21:55:24 +02:00
tldr/pages/common/mmdc.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

17 lines
767 B
Markdown

# 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):
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}}`
- Specify the theme of the chart:
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-t|--theme]}} {{forest|dark|neutral|default}}`
- Specify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`):
`mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-b|--backgroundColor]}} {{color}}`