mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Handle multi-line inline code spans better (fixes #130).
This commit is contained in:
parent
6afd61ed66
commit
4865301ce9
5 changed files with 115 additions and 13 deletions
|
|
@ -33,3 +33,13 @@ some *space* in *some * emphasis
|
|||
some *space* in **some ** emphasis
|
||||
some _space_ in _ some_ emphasis
|
||||
some __space__ in __ some __ emphasis
|
||||
|
||||
Text
|
||||
text ` code
|
||||
span` text
|
||||
text.
|
||||
|
||||
Text
|
||||
text `code
|
||||
span ` text
|
||||
text.
|
||||
|
|
|
|||
|
|
@ -151,6 +151,22 @@
|
|||
"errorContext": "``embedded backtick` ``",
|
||||
"errorRange": [ 1, 24 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 38,
|
||||
"ruleNames": [ "MD038", "no-space-in-code" ],
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "` code\nspan`",
|
||||
"errorRange": [ 6, 6 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 44,
|
||||
"ruleNames": [ "MD038", "no-space-in-code" ],
|
||||
"ruleDescription": "Spaces inside code span elements",
|
||||
"errorDetail": null,
|
||||
"errorContext": "`code\nspan `",
|
||||
"errorRange": [ 1, 7 ]
|
||||
},
|
||||
{
|
||||
"lineNumber": 19,
|
||||
"ruleNames": [ "MD039", "no-space-in-links" ],
|
||||
|
|
|
|||
58
test/line-breaks-inside-code-spans.md
Normal file
58
test/line-breaks-inside-code-spans.md
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Line breaks inside code spans
|
||||
|
||||
Text `code
|
||||
span` text.
|
||||
|
||||
Text `code
|
||||
span` text `code
|
||||
span` text.
|
||||
|
||||
Text `code
|
||||
span` text `code
|
||||
span` text `code
|
||||
span` text.
|
||||
|
||||
Text `code
|
||||
span
|
||||
code
|
||||
span` text.
|
||||
|
||||
Text `code
|
||||
span` text `code span`
|
||||
text `code span` text.
|
||||
|
||||
Text `code
|
||||
span` text `code span` text
|
||||
`code span` text.
|
||||
|
||||
`code
|
||||
span` `span`
|
||||
`span`
|
||||
|
||||
Text
|
||||
text ` code {MD038}
|
||||
span` text
|
||||
text.
|
||||
|
||||
Text
|
||||
text `code
|
||||
span ` text {MD038}
|
||||
text.
|
||||
|
||||
Text
|
||||
text `code
|
||||
span code
|
||||
span` text
|
||||
text.
|
||||
|
||||
Text
|
||||
text ` code {MD038}
|
||||
span code
|
||||
span` text
|
||||
text.
|
||||
|
||||
Text
|
||||
text `code
|
||||
span code
|
||||
span ` text {MD038}
|
||||
text.
|
||||
Loading…
Add table
Add a link
Reference in a new issue