Update MD034/no-bare-urls to re-scan documents with potential violations using proper reference definition handling to avoid false positives (fixes #787).

This commit is contained in:
David Anson 2023-05-23 04:01:55 +00:00
parent 054f208e9a
commit 488813f7f7
7 changed files with 136 additions and 102 deletions

View file

@ -83,8 +83,7 @@ Angle brackets work the same for email: <user@example.com>
Links bind to the innermost [link that [is-a-valid] link](https://example.com) {MD034}
But not if the [link [is-not-a-valid] link](https://example.com) {MD034}
HOWEVER this scenario could have an invalid shortcut and IS reported
But not if the [link [is-not-a-valid] link](https://example.com)
Escaping both inner square brackets avoids the unwanted report:
Escaping both inner square brackets avoids confusion:
[link \[is-not-a-valid\] link](https://example.com)