[GH-ISSUE #386] MD038 shouldn't trigger when string starts OR ends with a backtick #324

Closed
opened 2026-03-03 01:25:43 +03:00 by kerem · 2 comments
Owner

Originally created by @Jackenmen on GitHub (Apr 17, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/386

Here's an example where this would be useful:

`` Ctrl+` ``

Right now it triggers MD038 error, but it's the only way to write "Ctrl+`" without a trailing space ending up the inline code.

Originally created by @Jackenmen on GitHub (Apr 17, 2021). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/386 Here's an example where this would be useful: ``` `` Ctrl+` `` ``` Right now it triggers MD038 error, but it's the only way to write "Ctrl+\`" without a trailing space ending up the inline code.
kerem 2026-03-03 01:25:43 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Apr 18, 2021):

This pattern explicitly should not trigger MD038 as described in the documentation: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md038

Here is an example of that text not reporting an issue: https://dlaa.me/markdownlint/#%25m%23%20Issue%20386%0A%0AText%20%60%60%20Ctrl%2B%60%20%60%60%20text.%0A

<!-- gh-comment-id:821916922 --> @DavidAnson commented on GitHub (Apr 18, 2021): This pattern explicitly should not trigger MD038 as described in the documentation: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md038 Here is an example of that text not reporting an issue: https://dlaa.me/markdownlint/#%25m%23%20Issue%20386%0A%0AText%20%60%60%20Ctrl%2B%60%20%60%60%20text.%0A
Author
Owner

@Jackenmen commented on GitHub (Apr 18, 2021):

Yeah... That's a bit embarrassing, I forgot to update before reporting. Sorry!

<!-- gh-comment-id:821971841 --> @Jackenmen commented on GitHub (Apr 18, 2021): Yeah... That's a bit embarrassing, I forgot to update before reporting. Sorry!
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#324
No description provided.