markdownlint/test/reversed_link.md

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
&lpar;reversed&rpar;[link] {MD011}
a &rpar; a &lpar; a &rpar;[a]~ {MD011}
<!-- markdownlint-disable no-inline-html-->
a<pre>&rpar; a &lpar; a &rpar;[a]~</pre> {MD011}