Markdown-preview-enhanced: export (mermaid) graphs in SVG

Created on 2 Nov 2016  ·  5Comments  ·  Source: shd101wyy/markdown-preview-enhanced

hi
before markdown-preview-enhanced i was using atom-mermaid, that has the nice feature to export a graph into SVG (by a simple mermaid-cli --svg see https://github.com/y-takey/atom-mermaid/issues/31 )

do you think it could be possibile here? maybe a contextual menuitem or command

Most helpful comment

@StefanoCecere I was thinking about compiling markdown to markdown so that the exported markdown includes all graphs (as png images), code chunks (hide and only include results), math typesettings (show as image) etc and can be published on GitHub.

All 5 comments

Hi @StefanoCecere ,

Sorry I don't have plan to support exporting mermaid to svg.
I just tried on my laptop and it seems that the edge is not generated correctly. Don't know why this happened.

screen shot 2016-11-02 at 11 41 58 am

Thanks

ok, the SVG doesnt work well... but exporting the PNG?
so we could re-embed the generated PNG into the .md file to have a full working doc with graphs, to publish on GitHub for example, where we can't have the mermad.js code to render graphs

@StefanoCecere I was thinking about compiling markdown to markdown so that the exported markdown includes all graphs (as png images), code chunks (hide and only include results), math typesettings (show as image) etc and can be published on GitHub.

I was quite busy recently. I might implement export as markdown feature during the Thanksgiving break.

i think that the compilation into markdown would be a killer feature! making Atom + markdown-preview-enhanced the definitive Markdown writing environment

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liuwa666 picture liuwa666  ·  5Comments

saeidamiri1 picture saeidamiri1  ·  3Comments

AdexoMing picture AdexoMing  ·  3Comments

ajstadlin picture ajstadlin  ·  5Comments

xu4wang picture xu4wang  ·  5Comments