mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
867 B
867 B
This rule is triggered for code spans containing content with unnecessary space next to the beginning or ending backticks:
`some text `
` some text`
` some text `
To fix this, remove the extra space characters from the beginning and ending:
`some text`
Note: A single leading and trailing space is allowed by the specification and trimmed by the parser to support code spans that begin or end with a backtick:
`` `backticks` ``
`` backtick` ``
Note: When single-space padding is present in the input, it will be preserved (even if unnecessary):
` code `
Note: Code spans containing only spaces are allowed by the specification and are also preserved:
` `
` `
Rationale: Violations of this rule are usually unintentional and can lead to improperly-rendered content.