[GH-ISSUE #1181] MD009: Add option to remove trailing spaces in code blocks #2481

Closed
opened 2026-03-07 20:08:09 +03:00 by kerem · 0 comments
Owner

Originally created by @verhovsky on GitHub (Apr 20, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1181

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.

Originally created by @verhovsky on GitHub (Apr 20, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1181 > 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.
kerem 2026-03-07 20:08:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2481
No description provided.