Skip to content

Require an allowed TLD in fuzzy email hosts - #124

Closed
davidtaylorhq wants to merge 1 commit into
markdown-it:masterfrom
davidtaylorhq:fuzzy-email-tld
Closed

davidtaylorhq wants to merge 1 commit into
markdown-it:masterfrom
davidtaylorhq:fuzzy-email-tld

Conversation

@davidtaylorhq

Copy link
Copy Markdown

Fuzzy links anchor on the TLD list, but since d4a73a4 the fuzzy email host accepted any final label, so user@example.badtld was linkified. Anchor the email host on the TLD list too, the same way get_fuzzy_url_host_port does.

  • Add a not_links fixture for an email with an unknown TLD.

Closes #123

Fuzzy links anchor on the TLD list, but since d4a73a4 the fuzzy email host accepted any final label, so `user@example.badtld` was linkified. Anchor the email host on the TLD list too, the same way `get_fuzzy_url_host_port` does.

- Add a `not_links` fixture for an email with an unknown TLD.

Closes markdown-it#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuzzy emails ignore the TLD list since 6.0.0

1 participant