Hypercontext / linkifyjs

JavaScript plugin for finding links in plain-text and converting them to HTML <a> tags.
https://linkify.js.org
MIT License
1.83k stars 182 forks source link

added anchor to text with a file extension (.sh) #441

Closed tyzion closed 1 year ago

tyzion commented 1 year ago

Hi Everybody! I've searched for an answer but didn't find it...

It added an anchor to "my-script.sh". Is there a way I can tell linkify-html to add links only to urls with http or www and emails (with @)?

Thanks in advance!!

nfrasser commented 1 year ago

@tyzion take a look at the validate option https://linkify.js.org/docs/options.html#validate

tyzion commented 1 year ago

oh sorry, allright! thanks!