-
-
Notifications
You must be signed in to change notification settings - Fork 745
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c83327c
commit cbc3bc4
Showing
3 changed files
with
66 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,44 @@ | ||
This rule is triggered for code spans that have content with spaces next to the | ||
beginning or ending backticks: | ||
This rule is triggered for code spans that have content with unnecessary spaces | ||
next to the beginning or ending backticks: | ||
|
||
```markdown | ||
`some text ` | ||
|
||
` some text` | ||
|
||
` some text ` | ||
``` | ||
|
||
To fix this, remove any spaces at the beginning or ending: | ||
To fix this, remove extra spaces from the beginning or ending: | ||
|
||
```markdown | ||
`some text` | ||
``` | ||
|
||
Note: Code spans containing only spaces are allowed by the specification: | ||
Note: Code spans containing only spaces are allowed by the specification and are | ||
preserved: | ||
|
||
```markdown | ||
` ` or ` ` | ||
` ` | ||
|
||
` ` | ||
``` | ||
|
||
Note: A single leading *and* trailing space is allowed by the specification and | ||
automatically trimmed by the parser (in order to allow for code spans that embed | ||
one or more backticks): | ||
trimmed by the parser to support code spans that begin or end with a backtick: | ||
|
||
```markdown | ||
`` `backticks` `` | ||
|
||
`` backtick` `` | ||
``` | ||
|
||
Note: When single-space padding is present in the input, it will be preserved | ||
even if unnecessary: | ||
|
||
```markdown | ||
`` `backticks` `` or `` backtick` `` | ||
` code ` | ||
``` | ||
|
||
Rationale: Violations of this rule are usually unintentional and may lead to | ||
Rationale: Violations of this rule are usually unintentional and can lead to | ||
improperly-rendered content. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters