[GH-ISSUE #271] Use of backtick in code #2082

Closed
opened 2026-03-07 20:04:21 +03:00 by kerem · 1 comment
Owner

Originally created by @gjdonkers on GitHub (Apr 6, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/271

Hi,

When using a backtick in a line of code the following rule MD038 is triggered.

Example:
Open a terminal [⌃⇧`]

The result is correct, or should I use a different syntax?

Regards Giedo

Originally created by @gjdonkers on GitHub (Apr 6, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/271 Hi, When using a backtick in a line of code the following rule [MD038](https://github.com/DavidAnson/markdownlint/blob/v0.19.0/doc/Rules.md#md038---spaces-inside-code-span-elements) is triggered. Example: Open a terminal [`` ⌃⇧` ``] The result is correct, or should I use a different syntax? Regards Giedo
kerem 2026-03-07 20:04:21 +03:00
Author
Owner

@DavidAnson commented on GitHub (Apr 6, 2020):

I cannot see the markdown you used, but I expect it is something like this:

Open a terminal [`` ⌃⇧` ``]

Assuming so, the scenario of including a single space on both sides to provide separation for the backtick is not currently recognized by this rule.

But it probably should be. I will look at adding that soon, thank you!

<!-- gh-comment-id:610002805 --> @DavidAnson commented on GitHub (Apr 6, 2020): I cannot see the markdown you used, but I expect it is something like this: Open a terminal [`` ⌃⇧` ``] Assuming so, the scenario of including a single space on both sides to provide separation for the backtick is not currently recognized by this rule. But it probably should be. I will look at adding that soon, thank you!
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#2082
No description provided.