mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-22 12:54:06 +01:00
Improve highlighting for MD038/no-space-in-code, add more tests.
This commit is contained in:
parent
681e8bae4e
commit
5fee0a921d
4 changed files with 87 additions and 20 deletions
|
|
@ -20,3 +20,10 @@ Space [ inside ](link) text
|
|||
|
||||
```
|
||||
```
|
||||
|
||||
space `` inside `` code
|
||||
space `inside` of ` code` elements
|
||||
`space` inside `of` code ` elements`
|
||||
space ``inside`` of `` code`` elements
|
||||
`` ` embedded backtick``
|
||||
``embedded backtick` ``
|
||||
|
|
|
|||
|
|
@ -71,6 +71,60 @@
|
|||
"errorContext": "` inside `",
|
||||
"errorRange": [7, 10]
|
||||
},
|
||||
{
|
||||
"lineNumber": 24,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "`` inside ``",
|
||||
"errorRange": [ 7, 12 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 25,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "` code`",
|
||||
"errorRange": [ 19, 7 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 26,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "` elements`",
|
||||
"errorRange": [ 26, 11 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 27,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "`` code``",
|
||||
"errorRange": [ 21, 9 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 28,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "`` ` embedded backtick``",
|
||||
"errorRange": [ 1, 25 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 29,
|
||||
"ruleName": "MD038",
|
||||
"ruleAlias": "no-space-in-code",
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "``embedded backtick` ``",
|
||||
"errorRange": [ 1, 24 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 19,
|
||||
"ruleName": "MD039",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue