Mermaid graphs rendered to ascii
Pretty cool really. A little go script to convert Mermaid markup to ASCII art. It can be even called via curl:
curl https://mermaid-ascii.art/generate -d mermaid="graph LR\nABC --> DEF"
2024-10-15 · 1 year ago · 👍 johano, Half_Elf_Monk, LucasMW, arma, DdlyH, bsj38381
5 Comments ↓
oh now this is cool! 😃
That's cool enough that I'm sitting here wishing for a usecase. I guess... if I write a gemlog post with ... with a flow chart in it? Hm...
Yeah. Also schematics. I've hand-drawn ASCII schematics before but it'd be cooler to use mermaid for it. Look here:
Okay so I ollowed the link, admired the schematics and the mermaidASCII usecase. Then I hit the link at the top of that page and it gave me a CUSTOM LXX 404 message. @requiem how did you accomplish that? that's cool
Haha well it’s handled through the little engine I wrote. Quite simply if it cannot find a file then it returns an error header instead of 20/text gemini with the appropriate code.