mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add MD038, MD039 with tests.
This commit is contained in:
parent
b85e53a9c4
commit
7e431f4499
6 changed files with 98 additions and 11 deletions
29
doc/Rules.md
29
doc/Rules.md
|
|
@ -824,3 +824,32 @@ Rationale: Emphasis is only parsed as such when the asterisks/underscores
|
|||
aren't completely surrounded by spaces. This rule attempts to detect where
|
||||
they were surrounded by spaces, but it appears that emphasized text was
|
||||
intended by the author.
|
||||
|
||||
## MD038 - Spaces inside code span elements
|
||||
|
||||
Tags: whitespace, code
|
||||
|
||||
This rule is triggered on code span elements that have spaces right inside the
|
||||
backticks:
|
||||
|
||||
` some text `
|
||||
|
||||
`some text `
|
||||
|
||||
` some text`
|
||||
|
||||
To fix this, remove the spaces inside the codespan markers:
|
||||
|
||||
`some text`
|
||||
|
||||
## MD039 - Spaces inside link text
|
||||
|
||||
Tags: whitespace, links
|
||||
|
||||
This rule is triggered on links that have spaces surrounding the link text:
|
||||
|
||||
[ a link ](http://www.example.com/)
|
||||
|
||||
To fix this, remove the spaces surrounding the link text:
|
||||
|
||||
[a link](http://www.example.com/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue