[GH-ISSUE #481] MD038: Improved fixing for words stuck to backtick #2244

Open
opened 2026-03-07 20:05:56 +03:00 by kerem · 0 comments
Owner

Originally created by @nschonni on GitHub (Jan 17, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/481

Currently the fix for MD038 correctly trims the interior of the spans, but sometimes that interior space is because of a missing space after the backtick.
EX:

My `code `should be good

Gets fixed to:

My `code`should be good

But ideally it would detect a non-whitespace character trailing the lead/closing backtick and add the padding like:

My `code` should be good
Originally created by @nschonni on GitHub (Jan 17, 2022). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/481 Currently the fix for MD038 correctly trims the interior of the spans, but sometimes that interior space is because of a missing space after the backtick. EX: ```md My `code `should be good ``` Gets fixed to: ```md My `code`should be good ``` But ideally it would detect a non-whitespace character trailing the lead/closing backtick and add the padding like: ```md My `code` should be good ```
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#2244
No description provided.