mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
975 stars 181 forks source link

Feature request: draw graph in ascii art #36

Open cdmihai opened 5 years ago

cdmihai commented 5 years ago

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.

felickz commented 2 years ago

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

mzvast commented 2 years ago

I like this feature

MKyhos commented 2 years ago

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?)

devthejo commented 2 years ago

and for output of a cli it would be great too

esafirm commented 1 year ago

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

KSDaemon commented 1 year ago

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.

OR13 commented 1 year ago

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

peppelinux commented 1 year ago

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

ayush29feb commented 11 months ago

Also looking for this feature for the CLI output

maral commented 10 months ago

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.

wanghenshui commented 6 months ago

it's really helpful in code comment

kebot commented 1 month ago

I recently found Diagon, it has it's own-syntax but very similar to Mermaid. To use in the web environment, we can try https://github.com/elmouradiaminedev/diagonjs which looks like a webassembly wrapper of the Diagon library.

You can also try out the online demo here -> https://arthursonzogni.com/Diagon/

andyfeller commented 2 weeks ago

speaking as a maintainer of the GitHub CLI, I would love to enhance gh issue view or any of the other commands to render an ASCII version of Mermaid diagram for GitHub users.

found https://github.com/AlexanderGrooff/mermaid-ascii from @alexandergrooff, need to see how it compare to alternates but just wanted to share interest ❤ ty for supporting durable communitcation