2020-11-15 17:03:20 -08:00
|
|
|
# reversed_link
|
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
Go to [this website](https://www.example.com)
|
|
|
|
|
2020-04-01 20:21:36 -07:00
|
|
|
Go to (this website)[https://www.example.com] {MD011}
|
2015-03-03 18:28:59 -08:00
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
Go to (this)[website](https://www.example.com)
|
|
|
|
|
2015-03-03 18:28:59 -08:00
|
|
|
However, this shouldn't trigger inside code blocks:
|
|
|
|
|
|
|
|
myObj.getFiles("test")[0]
|
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
Nor code fences:
|
|
|
|
|
|
|
|
```js
|
|
|
|
myObj.getFiles(test)[0];
|
|
|
|
```
|
|
|
|
|
2015-03-03 18:28:59 -08:00
|
|
|
Nor inline code: `myobj.getFiles("test")[0]`
|
2019-09-04 22:18:23 -07:00
|
|
|
|
2020-04-01 20:21:36 -07:00
|
|
|
Two (issues)[https://www.example.com/one] in {MD011}
|
|
|
|
the (same text)[https://www.example.com/two]. {MD011}
|
2019-09-04 22:18:23 -07:00
|
|
|
|
2020-04-01 20:21:36 -07:00
|
|
|
Two (issues)[https://www.example.com/three] on the (same line)[https://www.example.com/four]. {MD011}
|
2019-09-27 21:18:16 -07:00
|
|
|
|
|
|
|
`code code
|
|
|
|
code`
|
|
|
|
(reversed)[link] {MD011}
|
|
|
|
|
|
|
|
text
|
|
|
|
text `code
|
|
|
|
code code
|
|
|
|
code` text
|
|
|
|
text
|
|
|
|
text (reversed)[link] text {MD011}
|
2019-09-28 14:30:16 -07:00
|
|
|
|
|
|
|
## Escaped JavaScript Content
|
|
|
|
|
|
|
|
var IDENT_RE = '([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*'; {MD011}
|
|
|
|
|
|
|
|
begin: /\B(([\/.])[\w\-.\/=]+)+/, {MD011}
|
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
{begin: '%r\\(', end: '\\)[a-z]*'}
|
2019-09-28 14:30:16 -07:00
|
|
|
|
|
|
|
return /(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(str); {MD011}
|
2020-10-14 20:57:04 -07:00
|
|
|
|
|
|
|
## Escaped Parens
|
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
(reversed)[link]
|
|
|
|
|
|
|
|
a ) a ( a )[a]~
|
|
|
|
|
|
|
|
a<pre>) a ( a )[a]~</pre>
|
|
|
|
|
|
|
|
## Backslash Escapes
|
|
|
|
|
|
|
|
xxx(xxx)[xxx] {MD011}
|
|
|
|
|
|
|
|
xxx\(xxx)[xxx]
|
|
|
|
|
|
|
|
xxx(xxx\)[xxx]
|
|
|
|
|
|
|
|
xxx(xxx)\[xxx]
|
|
|
|
|
|
|
|
xxx(xxx)[xxx\]
|
|
|
|
|
|
|
|
## Consecutive Links
|
2020-10-14 20:57:04 -07:00
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
text [link](destination) text [link](destination) text
|
|
|
|
text [link](destination)[link](destination) text
|
|
|
|
text [link](destination)[link](destination)[link](destination) text
|
2020-10-14 20:57:04 -07:00
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
text (reversed)[link] text (reversed)[link] text {MD011}
|
2020-10-14 20:57:04 -07:00
|
|
|
|
2022-10-16 22:16:51 -07:00
|
|
|
## Nested Parens
|
|
|
|
|
|
|
|
Text (text `func()[index]`) text
|
|
|
|
|
|
|
|
Text (text(reversed)[link] text {MD011}
|
|
|
|
|
|
|
|
## Empty Content
|
|
|
|
|
|
|
|
Text ()[text] text
|
|
|
|
|
|
|
|
Text (text()[text] text
|
|
|
|
|
2021-06-17 21:50:03 -07:00
|
|
|
<!-- markdownlint-configure-file {
|
|
|
|
"code-block-style": false,
|
|
|
|
"line-length": false,
|
2025-01-06 11:35:17 -05:00
|
|
|
"no-inline-html": false,
|
|
|
|
"descriptive-link-text": false
|
2021-06-17 21:50:03 -07:00
|
|
|
} -->
|