We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6f103 commit 1b2c29cCopy full SHA for 1b2c29c
1 file changed
project/README.md
@@ -1,9 +1,12 @@
1
# Local Mermaid Preview Setup
2
3
-## Install live-server
+## Install node deps
4
+
5
+Install live-server for viewing in browser and the mermaid tool for exporting.
6
7
```bash
8
npm install -g live-server
9
+npm install -g @mermaid-js/mermaid-cli
10
```
11
12
---
@@ -16,3 +19,11 @@ live-server
16
19
17
20
18
21
This starts a local server with auto-refresh for your Mermaid diagrams.
22
23
+## Export to an image
24
25
+This exports at four times the standard resolution.
26
27
+```bash
28
+mmdc -i diagram.mmd -o diagram.png -s 4 -w 2000
29
+```
0 commit comments