mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 01:05:55 +03:00
[GH-ISSUE #473] MD038 Should catch code spans that start AND end with spaces #390
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheJaredWilcurt on GitHub (Dec 28, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/473
MD038 - Spaces inside code span elements
Example code:
Should work similar to MD039 - Spaces inside link text
Reproduction:
@TheJaredWilcurt commented on GitHub (Dec 28, 2021):
Also, this worked in version
0.22.0and stopped working in0.23.0+.@DavidAnson commented on GitHub (Dec 28, 2021):
Sorry about that! To be clear, I just released version 0.25.0 last night, but you are saying this broke two versions before that? Just coincidental timing, I guess?
@TheJaredWilcurt commented on GitHub (Dec 28, 2021):
Oops, the version numbers are actually from
markdownlint-cliWhich changed from
~0.19.0to~0.20.2in it's deps.@DavidAnson commented on GitHub (Dec 28, 2021):
I couldn't figure out how I would've missed this for so long. It turns out, it's deliberate!
Here's the commit that allows it:
github.com/DavidAnson/markdownlint@bdc0246b34The second bullet point here explains why: https://spec.commonmark.org/0.30/#code-spans
@TheJaredWilcurt commented on GitHub (Jan 7, 2022):
An unfortunate edge case.