hougesen / mdsf

Format markdown code blocks using your favorite code formatters.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: add a verbose (or debug mode)

ccoVeille opened this issue · comments

It would be interesting to be able to see the formatter that is running on each file

Of course, it would be only something to ask on demand.

maybe like a -v that inform that block from line X to Y is sent to prettier/shfmt.

with a -vv the information would be more details with the block content before calling the method, then after/ but also the exact path of the formatter used.

it could also be a kind of log level info/warn/error/debug

right now I used strace -ff mdsf file.md to see what happens under the hood

Currently the --debug argument enables stdout/stderr of the formatters.

Adding the formatter and line info should be pretty straightforward 😃

Currently the --debug argument enables stdout/stderr of the formatters.

Adding the formatter and line info should be pretty straightforward 😃

Oh my bad, I tried a mdsf --help and didn't see it.

I can see it in mdsf format --help 🤦

Anyway, thanks for adding the linter in the debug

Thanks for implementing it