Avoid exception when MD011/no-reversed-links is not able to report column/length (fixes #339).

This commit is contained in:
David Anson 2020-10-14 20:57:04 -07:00
parent aa7fbce2dd
commit 9afd4e1ab5
2 changed files with 20 additions and 6 deletions

View file

@ -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>&rpar; a &lpar; a &rpar;[a]~</pre> {MD011}