MoaidHathot / Dumpify

Adding `.Dump()` extension methods to Console Applications, similar to LinqPad's.
MIT License
959 stars 40 forks source link

Support for Markdown output? #5

Open sulmar opened 1 year ago

sulmar commented 1 year ago

Markdown is very popular format and support by GitHub. I propose to add the possibility of output to it.

MoaidHathot commented 1 year ago

Hi @sulmar, thanks for the suggestion! More output formats are on my roadmap. Although Markdown wasn't one of them, I will add it and bump it in the list. This will be easily achievable once I finish my current work on abstracting the table builder (in a week or two). Having said that, I'm not sure I could implement the Markdown output in the upcoming month, as I'm busy with work and other features. I'm happy to help you and other community members if you would like to implement it and contribute the code in the meantime :)

sulmar commented 1 year ago

I will be happy to help you with markdown. I look forward to abstraction.

EugeneKrapivin commented 3 months ago

how'd you expect to use markdown? a tabular representation of a dataset? I have a short code snippet I wrote to write md tables

https://dotnetfiddle.net/ipCnoc

this might be a kickstarter, It supports alignment as well (not shown in the demo code). @MoaidHathot how do you see MD formatting output of an object dump?

MoaidHathot commented 3 months ago

@EugeneKrapivin, I didn't get to it yet, but I imagined it being dumped as text, similar to the existing DumpText() extension method. Once the new engine is ready, it should be extremely easy to implement new types of object dumps, including by consumers. Thanks for the code snippet, I will take a look :)