kaaveland / eugene

Careful With that Lock, Eugene
MIT License
32 stars 1 forks source link

Consider transforming markdown to terminal output with a library #34

Closed kaaveland closed 6 months ago

kaaveland commented 7 months ago

I'm certain there's some markdown tools we can use to just render the markdown report nicely for a terminal window. I've been using an executable named glow, which makes very nice output, then there's libraries like https://kristaps.bsd.lv/lowdown/ -- ideally we'd find something on crates.io that does the job.

kaaveland commented 7 months ago

https://docs.rs/termimad/latest/termimad/ seems pretty close to what we want.

kaaveland commented 6 months ago

Another good candidate is https://docs.rs/pulldown-cmark-mdcat/2.1.2/pulldown_cmark_mdcat/index.html -- which exposes a pulldown-cmark-mdcat crate. It seems to perhaps not support tables in markdown, but we could consider removing those and rendering that differently anyway.

kaaveland commented 6 months ago

Since we've added handlebars, I'm tempted to just not do this, and instead make a nice and terse output template for plain.