Skip to content
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

MD009: Add option to remove trailing spaces in code blocks #1181

Open
verhovsky opened this issue Apr 20, 2024 · 0 comments
Open

MD009: Add option to remove trailing spaces in code blocks #1181

verhovsky opened this issue Apr 20, 2024 · 0 comments

Comments

@verhovsky
Copy link

verhovsky commented Apr 20, 2024

Note: Trailing space is allowed in indented and fenced code blocks because some languages require it.

but I want to format code in languages that don't require it. You could even do something similar to MD010 where I can pass a list of languages that would disable removing trailing spaces and flag them in any other code blocks, including unmarked ones.

@DavidAnson DavidAnson changed the title MD009: option to remove trailing spaces in code blocks MD009: Add option to remove trailing spaces in code blocks Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants