mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-03 22:48:49 +01:00
46 lines
1,018 B
Markdown
46 lines
1,018 B
Markdown
# reversed_link
|
|
|
|
Go to (this website)[https://www.example.com] {MD011}
|
|
|
|
However, this shouldn't trigger inside code blocks:
|
|
|
|
myObj.getFiles("test")[0]
|
|
|
|
Nor inline code: `myobj.getFiles("test")[0]`
|
|
|
|
Two (issues)[https://www.example.com/one] in {MD011}
|
|
the (same text)[https://www.example.com/two]. {MD011}
|
|
|
|
<!-- markdownlint-disable line-length -->
|
|
Two (issues)[https://www.example.com/three] on the (same line)[https://www.example.com/four]. {MD011}
|
|
|
|
`code code
|
|
code`
|
|
(reversed)[link] {MD011}
|
|
|
|
text
|
|
text `code
|
|
code code
|
|
code` text
|
|
text
|
|
text (reversed)[link] text {MD011}
|
|
|
|
## Escaped JavaScript Content
|
|
|
|
var IDENT_RE = '([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*'; {MD011}
|
|
|
|
begin: /\B(([\/.])[\w\-.\/=]+)+/, {MD011}
|
|
|
|
{begin: '%r\\(', end: '\\)[a-z]*'} {MD011}
|
|
|
|
return /(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(str); {MD011}
|
|
|
|
## Escaped Parens
|
|
|
|
(reversed)[link] {MD011}
|
|
|
|
a ) a ( a )[a]~ {MD011}
|
|
|
|
<!-- markdownlint-disable no-inline-html-->
|
|
|
|
a<pre>) a ( a )[a]~</pre> {MD011}
|