mdformat icon indicating copy to clipboard operation
mdformat copied to clipboard

[ENH] Add --diff option to show diff when running with --check

Open tdgroot opened this issue 2 years ago • 7 comments

We use mdformat to validate Markdown formatting in a documentation project we're running. Most users are contributing to the documentation by creating changes, commits and pull requests from the Github UI, so they won't be running any linting/validation on commit. In this case, it would be very useful for those users to see what mdformat is marking as "unformatted" and knowing what should be done to fix that.

This was highly inspired by the implementation that Black uses, as it seems to doing just what we need.

Looking forward to your thoughts and review :).

tdgroot avatar Jan 26 '23 13:01 tdgroot

Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada:

welcome[bot] avatar Jan 26 '23 13:01 welcome[bot]

Would be great to have this feature! :rocket:

AlexanderGrooff avatar Feb 07 '23 09:02 AlexanderGrooff

@hukkin any chance to get a review for this PR? :)

tdgroot avatar Oct 06 '23 14:10 tdgroot