mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 01:22:35 +03:00
mmdc: add page (#4540)
This commit is contained in:
parent
9f1c79f134
commit
bd839fe0a0
17
pages/common/mmdc.md
Normal file
17
pages/common/mmdc.md
Normal file
@ -0,0 +1,17 @@
|
||||
# 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 --input {{input.mmd}} --output {{output.svg}}`
|
||||
|
||||
- Specify the theme of the chart:
|
||||
|
||||
`mmdc --input {{input.mmd}} --output {{output.svg}} --theme {{forest|dark|neutral|default}}`
|
||||
|
||||
- Specify the background color of the chart (e.g. `lime`, `"#D8064F"`, or `transparent`):
|
||||
|
||||
`mmdc --input {{input.mmd}} --output {{output.svg}} --backgroundColor {{color}}`
|
Loading…
Reference in New Issue
Block a user