3 ms·
> I think so-called ASCII-art is more in the spirit of Markdown. If you're simply doing a less on a file, then sure. But if you want to do a 'render' on the Ma
by throw0101a 5y ago
> I think so-called ASCII-art is more in the spirit of Markdown.
If you're simply doing a less on a file, then sure. But if you want to do a 'render' on the Markdown and convert it to another format (HTML, PDF) then having a mechanism that can translate ASCII to something graphical could be useful.
In some ways this is what the DOT language does in Graphviz:
* https://graphviz.org/gallery/ https://graphviz.org/gallery/
> The spirit behind the kind of thing in the OP, on the other hand, is that one should get nicely formatted HTML from Markdown for the purpose of online consumption. Which is a very different goal.
I'm not sure if there's a way to have both ASCII art and it be renderable to graphics. Closest that I could find:
* https://github.com/martinthomson/aasvg https://github.com/martinthomson/aasvg
- actually_a_dog 5y agoI saw several things that looked promising on Github: * https://github.com/ivanceras/svgbob https://github.com/ivanceras/svgbob * https://github.com/ggerganov/dot-to-ascii https://github.com/ggerganov/dot-to-ascii (renders DOT to ascii. Combine this with an SVG renderer, maybe?) * https://github.com/ivanceras/spongedown https://github.com/ivanceras/spongedown Also, this SO question: https://stackoverflow.com/questions/3211801/graphviz-and-ascii-output https://stackoverflow.com/questions/3211801/graphviz-and-asc... I'm sure there are more out there.