Specify the background color of the chart (e.g. lime, "#D8064F", or transparent)

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/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mmdc --input {{input.mmd}} --output {{output.svg}} --backgroundColor {{color}}

click the source code to copy