mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Avoid exception when MD011/no-reversed-links is not able to report column/length (fixes #339).
This commit is contained in:
parent
aa7fbce2dd
commit
9afd4e1ab5
2 changed files with 20 additions and 6 deletions
|
@ -32,3 +32,13 @@ 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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue