linkify-it icon indicating copy to clipboard operation
linkify-it copied to clipboard

Links preceded by emojis are not rendered

Open Stormtv opened this issue 3 years ago • 0 comments

Playground Link: http://markdown-it.github.io/linkify-it/#t1=%F0%9F%9A%80https%3A%2F%2Fgoogle.com%0A%0A%F0%9F%9A%80%20https%3A%2F%2Fgoogle.com

Potential fix could be to add \p{Extended_Pictographic} into the schema_test & schema_match

self.re.schema_test = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'i');

self.re.schema_test = RegExp('(^|(?!_)(?:[><\uff5c]|[\p{Extended_Pictographic}]|' + re.src_ZPCc + '))(' + slist + ')', 'i');


I personally think this is strange to match on this but it matches the functionality of other social media sites.

Stormtv avatar Jan 02 '23 23:01 Stormtv