mmdc
all
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 info →Options (4)
-i, --inputbooleanConvert a file to the specified format (automatically determined from the file extension)
Example:
mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}}-o, --outputbooleanConvert a file to the specified format (automatically determined from the file extension)
Example:
mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}}-t, --themebooleanSpecify the theme of the chart
Example:
mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-t|--theme]}} {{forest|dark|neutral|default}}-b, --backgroundColorbooleanSpecify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`)
Example:
mmdc {{[-i|--input]}} {{input.mmd}} {{[-o|--output]}} {{output.svg}} {{[-b|--backgroundColor]}} {{color}}Examples (3)
Convert a file to the specified format (automatically determined from the file extension)
mmdc [-i|--input] input.mmd [-o|--output] output.svgSpecify the theme of the chart
mmdc [-i|--input] input.mmd [-o|--output] output.svg [-t|--theme] forest|dark|neutral|defaultSpecify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`)
mmdc [-i|--input] input.mmd [-o|--output] output.svg [-b|--backgroundColor] colormade by @shridhargupta | data from tldr-pages