Skip to content

Commit 1b2c29c

Browse files
committed
Added instructions to export to an image.
1 parent 8b6f103 commit 1b2c29c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

project/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Local Mermaid Preview Setup
22

3-
## Install live-server
3+
## Install node deps
4+
5+
Install live-server for viewing in browser and the mermaid tool for exporting.
46

57
```bash
68
npm install -g live-server
9+
npm install -g @mermaid-js/mermaid-cli
710
```
811

912
---
@@ -16,3 +19,11 @@ live-server
1619
```
1720

1821
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

Comments
 (0)