linkifyjs icon indicating copy to clipboard operation
linkifyjs copied to clipboard

Option to restrict hashtags to word boundary

Open nicodh opened this issue 2 months ago • 0 comments

In a string like "test#foo" the #foo is parsed as hashtag which is unexpected behaviour imho.

It's definitely wrong in a string like example.com#foo where #foo is a separate link (maybe related to #516 though)

Even if there is no strict definition "Some platforms may require the # to be preceded with a space"

Gihub for example: not a hashtag#516

I tried to fix that in the plugin but that seems not possible. (?)

nicodh avatar Oct 20 '25 09:10 nicodh