Add MD038, MD039 with tests.

This commit is contained in:
David Anson 2015-04-15 18:24:42 -07:00
parent b85e53a9c4
commit 7e431f4499
6 changed files with 98 additions and 11 deletions

View file

@ -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/)