mermaid-live-editor icon indicating copy to clipboard operation
mermaid-live-editor copied to clipboard

Feature request: draw graph in ascii art

Open cdmihai opened this issue 5 years ago • 13 comments

I'd like to include mermaid graphs in text heavy environments which don't always embed images / attachments well (markdown, wikis, emails, chat, etc). One option is to have the live mermaid editor generate ASCII art which I can then copy paste into my text / markdown documents.

cdmihai avatar Sep 13 '18 20:09 cdmihai

inspiration: https://plantuml.com/ascii-art

felickz avatar Sep 08 '21 21:09 felickz

I like this feature

mzvast avatar Sep 13 '21 20:09 mzvast

With the now available Mermaid support in Github Markdown, this is probably not necessary from initial intention, however it would still be sometimes useful if one wants to include diagrams directly in the code comments (or is this a rare use case?)

MKyhos avatar May 06 '22 12:05 MKyhos

and for output of a cli it would be great too

devthejo avatar Jun 02 '22 14:06 devthejo

This would be nice and we can move on from asciiflow 😄

esafirm avatar Aug 09 '22 01:08 esafirm

yeah. One of the cases for this: IETF RFCs are still rendered as plain texts. So even if you want to use some up-to-date awesome tool for diagrams, you still need to convert them to the ASCII representation. If you can not do it automatically — then the only option is just not to use cool tools at all ((( And create diagrams from the beginning by hand is asciiflow for example.

KSDaemon avatar Sep 16 '22 16:09 KSDaemon

I would love a way to convert mermaid to ascii for use in IETF RFCs.

OR13 avatar Oct 06 '22 15:10 OR13

I'm looking for this feature, it would be very useful having it!

peppelinux avatar Jan 21 '23 08:01 peppelinux

Also looking for this feature for the CLI output

ayush29feb avatar Aug 08 '23 22:08 ayush29feb

If you can't live without it, ChatGPT can create somewhat good enough head start which you can edit yourself - it is really bad at counting characters, so you'll have to add the right amount of spaces yourself: image

I tried like 5 extra prompts to convince it to fix it and nothing was perfect.

maral avatar Aug 23 '23 10:08 maral

it's really helpful in code comment

wanghenshui avatar Dec 20 '23 11:12 wanghenshui