|
|
|
|
|
by prepend
700 days ago
|
|
Comically, the way I save mermaid images are through screenshots. But this is only if I need to put it in a paper or something as otherwise just point the user to the diagram in a browser. It is still much better than any alternative I can think of. |
|
If you're looking at a rendered Mermaid diagram on your screen, you probably already have the SVG in your browser's dom. You can just right click -> view source -> find element -> view as html -> save that to a file. I expect this is how the SVG export on the Mermaid live editor[0] works.
(the Mermaid live editor is great, it's where I tend to go if I want an SVG export)
[0]:https://mermaid.live/