Linkify domain-only links (without scheme or www)
theyuv opened this issue · 1 comments
theyuv commented
Thanks for your library.
Would you consider adding a LinkType
for just domains (eg: example.com
)?
There are some cases where this is considered a link and needs to be detected/extracted (eg: Gmail and Twitter detect domains like these as links and turn them into an anchor tag).
Thanks again.
robinst commented
Hey! Yeah, extraction of plain domains would be handy. I think we'd need to be able to specify an "include list" of domains that should be detected, otherwise it tends to detect a lot of false positives. Or we'd ask the caller to do that themselves.
Anyway, I added a "help wanted" label and welcome pull requests for this.