robinst / linkify

Rust library to find links such as URLs and email addresses in plain text, handling surrounding punctuation correctly
https://robinst.github.io/linkify/
Apache License 2.0
201 stars 12 forks source link

Handle backslashes properly #47

Closed laralove143 closed 1 year ago

laralove143 commented 2 years ago

In a file like

example.com/thisisactually\
verylong

is detected as example.com/thisisactually where it should be example.com/thisisactuallyverylong and the newline should be ignored like Rust does

robinst commented 1 year ago

Hi. I don't want to add markup-specific logic to this library. Note that GitHub behaves the same way here (well it includes the backslash in the link too, but not the second line):

https://example.com/thisisactually\ verylong