News for hackers. Stuff that matters.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by fizzbatter on Monday October 31, 2016 @11:39AM (#12837755)
This is cool! Though, it still leaves me with my biggest problem: I have no idea how to efficiently draw the diagrams in the first place. Ascii diagrams are not easy to draw (for me, atleast).

The best i've seen is a GUI tool that creates the diagrams. That tool really is awesome (https://monodraw.helftone.com/), but it's a GUI tool and frankly supports complexity/features far greater than i really need most of the time.

I'd love a project that took some type of simple text based flow notation, and converted it to ascii flow diagrams. Eg:

    main: something -> other thing -> [ thing a, thing b, thing c]
    thing a: thing a -> thing b
    thing c: thing c -> thing b
In this mockup, my desired tool would take this simple non-artistic notation and convert it to a flow diagram showing a `something` object leading into an `other thing` object, which branches to three objects called `thing a`, `thing b`, and `thing c`. Each of those have their own flows as well, as noted by their own respective definitions. `thing a` leads over to `thing b`, `thing c` to `thing b`, and `thing b` doesn't actually do anything.

I love ascii diagrams, but i never want to construct them by hand. Writing them out in some simple notation like above would be awesome! Also note that i'm not expecting this to be insanely feature packed.. it sort of defeats the purpose of a simple notation. But being able to just construct them quickly as a starting point would be awesome. Advanced tools like Monodraw can take the complicated work.

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by subjectsigma on Monday October 31, 2016 @11:47AM (#12837851)
Have you ever tried GNU dot? http://www.graphviz.org/pdf/dotguide.pdf

I know you said you don't want to 'draw' ASCII diagrams, but if you use Emacs, there's a package called artist-mode which I've found helpful.

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by LukeShu on Monday October 31, 2016 @01:01PM (#12838635)
GraphViz/dot isn't GNU.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by subjectsigma on Monday October 31, 2016 @01:09PM (#12838706)
Huh. I'm not sure why, but I was almost certain it was.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by yoo1I on Monday October 31, 2016 @12:31PM (#12838364)
I've recently discovered plantuml[0]. It does a pretty good job for tasks centered around software design, and the language is simple, yet not too limited for my purposes.

[0] http://plantuml.com/state-diagram#Simple

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by tlarkworthy on Monday October 31, 2016 @11:54AM (#12837939)
This tool does that for sequence diagrams: https://www.websequencediagrams.com
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by ivanceras on Monday October 31, 2016 @08:49AM (#12836227)
This is an iteration of my previous submission[0] with improvements from the comments and feedback. It is now embeddable in a markdown, and the generated SVG is now optimized to it's size.

[0]https://news.ycombinator.com/item?id=12621680

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by replete on Monday October 31, 2016 @03:37PM (#12840176)
This looks very cool.

Do people actually manually write ASCII diagrams like that?

This is a great place to use Mermaid (https://github.com/knsv/mermaid)

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by ivanceras on Monday October 31, 2016 @08:41PM (#12842414)
I wrote some simple ascii diagrams inline with readme and code, but never too serious. I wrote this tool to enhance the rendering of the diagram, and publish it opensource. I never did expect some people use it seriously https://github.com/ivanceras/svgbobrus/pull/6
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by mpicker0 on Monday October 31, 2016 @03:51PM (#12840279)
I've used this for quick-and-dirty ASCII diagrams. They might need a bit of touching up to be usable with Spongedown. http://asciiflow.com/
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by kingosticks on Monday October 31, 2016 @10:37AM (#12837077)
Is this designed to be used or just a proof of concept? If the former then maybe some installation hints in the readme would be a good idea. As someone with no exposure to rust I have no idea what to do with this.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by ivanceras on Monday October 31, 2016 @08:36PM (#12842382)
This is a library written in rust. I will have to write the CLI soon.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by binarycrusader on Monday October 31, 2016 @06:38PM (#12841597)
My favorite take on this is Markdeep:

http://casual-effects.com/markdeep/

Re:Show HN: Spongedown – markdown renderer with ascii diagra... by piotrjurkiewicz on Monday October 31, 2016 @11:20AM (#12837547)
Looks nice, but an opposite tool would be more interesting for me.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by dmd on Monday October 31, 2016 @02:59PM (#12839841)
https://monodraw.helftone.com is what you're looking for.
Re:Show HN: Spongedown – markdown renderer with ascii diagra... by ivanceras on Monday October 31, 2016 @08:29PM (#12842335)
I'm looking forward to work on manipulating the generated SVG and reflect the change in the text diagram then render it back to SVG. But that will come a long way.