dundalek / markmap

Visualize markdown documents as mindmaps
MIT License
1.7k stars 175 forks source link

render as an image #22

Open Alino opened 6 years ago

Alino commented 6 years ago

It would be cool if there was an option to render mindmap as an image. I can imagine how useful it would be inside an npm script. For example when generating documentation for a project, I could create a mindmap image with data models.

dundalek commented 6 years ago

Hi, thanks for the suggestion. It is a neat idea, but I do not have an immediate use for it myself, so I won't be likely adding this at the moment.

You can do manual exports with the atom plugin though: https://github.com/dundalek/atom-markdown-mindmap . Just right click on the mindmap and export it to SVG.

However, markmap is built as a library, so anyone can build on top of it and create a CLI tool you describe. I will keep this issue open in case someone interested stumbles on it.

weaming commented 5 years ago

I want this feature too! It will be awesome!

fuxy1011 commented 5 years ago

hello, this markmap is really great! it's a nice idea for render as an image, i want to this feature too too. It will be awesome! hah

cavo789 commented 4 years ago

Like many others, would appreciate to be able to generate an image like a png file on the command line. This in order to be able to add markmap to a documentation generation flow where everything can be done automatically until the PDF generation.

Thanks.

AndreasTusche commented 3 years ago

You could start with having an option to save the SVG, which you generate anyway, as a standalone file.

As an example use case: I am not using atom.io and would love to add the generation of the markmap to a Makefile, so that I can run everything from the command line. By the way, there are some svg2png converters available for the command line, so that could then also be automated....

Many thanks for your consideration.