LinuxCommandLibrary

mmdc

CLI for mermaid, a diagram generation tool with a domain-specific language.

TLDR

Convert a file to the specified format (automatically determined from the file extension)

$ mmdc --input [input.mmd] --output [output.svg]
copy


Specify the theme of the chart
$ mmdc --input [input.mmd] --output [output.svg] --theme [forest|dark|neutral|default]
copy


Specify the background color of the chart (e.g. lime, "#D8064F", or transparent)
$ mmdc --input [input.mmd] --output [output.svg] --backgroundColor [color]
copy

Copied to clipboard