Reimplement MD034/no-bare-urls using micromark tokens (fixes #707).

This commit is contained in:
David Anson 2023-02-05 16:58:06 -08:00
parent 64159fa456
commit b990b3ea77
22 changed files with 1495 additions and 947 deletions

28
test/bare-urls-in-html.md Normal file
View file

@ -0,0 +1,28 @@
# Bare URLs in HTML
<p>
https://example.com/pass
</p>
Text https://example.com/fail text. {MD034}
Text <code>https://example.com/pass</code> text.
Text <code>https://example.com/pass</code> text https://example.com/fail text. {MD034}
Text <code>https://example.com/pass</code> text https://example.com/fail text <code>https://example.com/pass</code> text. {MD034}
Text <em> text <strong>text</strong> https://example.com/pass </em> text.
Text <em> text <em>text</em> https://example.com/pass </em> text.
Text <em> text <em>text</em> text </em> https://example.com/fail text. {MD034}
Text <br> text https://example.com/fail <br> text. {MD034}
Text <br/> text https://example.com/fail <br/> text. {MD034}
<!-- markdownlint-configure-file {
"line-length": false,
"no-inline-html": false
} -->