-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Support git diff code blocks #36
Comments
Hi, thanks for trying out Locally, I ran the latest version of
Steps: pipx install mdformat
pipx inject mdformat mdformat-gfm
mdformat ./tmp.md Do you have another |
Very possible. I'll dig deeper and see what comes up. There's quite a bit going on in terms of formatting, and I believe we're have at least a few plugins to |
@elliotweiser, did you find out what plugin was the problem? |
Currently, git-diff style code blocks do not appear to be supported/respected by the formatter, particularly when describing a list of deletions. As a result, a GitHub workflow snippet appears to be treated as YAML rather than a git diff. As a result...
This content:
Is formatted to this:
At a glance, this is just whitespace, but important information gets lost about the structure of the described source file. It would be great to see this use-case supported.
It's certainly possible that I'm doing something wrong.
The text was updated successfully, but these errors were encountered: