You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the way it is supposed to work to follow the GFM spec:
Trailing punctuation (specifically, ?, !, ., ,, :, *, _, and ~) will not be considered part of the autolink, though they may be included in the interior of the link
Marked version:
^4.2.12
Describe the bug
Marked doesn't detect ending underscores in links
https://twitter.com/madebynelson_ is detected as "https://twitter.com/madebynelson"
To Reproduce
Steps to reproduce the behavior:
marked.parse(DOMPurify.sanitize('https://twitter.com/madebynelson_')
Expected behavior
I expect link to render with ending underscore, especially if there are no previous underscores
The text was updated successfully, but these errors were encountered: