-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Save As Svg/Png #5
Comments
This would be nice although the end result is not really usable till the missing arrow heads issue (#2) is fixed. |
Export to SVG and PNG is a feature of mermaid cli that requires PhantomJS. I found this dependency quite invasive. I would be interested in alternatives before moving forward. |
Hmmm, how do you currently draw the diagrams in vscode ? in svg ? |
They are rendered as SVG. |
So there is certainly a way to expose the Converting |
This plugin renders the mermaid diagram using a vscode component that is meant for previewing HTML that is not too heavy. There is no default channel back from the preview diagram to the plugin code, so getting the svg in the plugin, although doable, requires a bit of work. |
Any plans to implement this feature? |
hmm... is there anyone can explain how to expose it with SVG code? |
jebbs' PlantUML extension has a nifty implementation of export diagram - it supports export to png, svg, pdf. Export Diagrams
They also seem to have a dependency on JRE. |
Would be really awesome to be able to export a diagram from the preview window as either an SVG or PNG. Both are supported by Mermaid directly.
One request -- possibly a different stylesheet to use for this as I wouldn't want the export to use the dark theme I use in Code.
The text was updated successfully, but these errors were encountered: