MarkdownAttributedString icon indicating copy to clipboard operation
MarkdownAttributedString copied to clipboard

Broken link detection if link text contains bracket

Open evgeny-sureev opened this issue 5 years ago • 3 comments

Example:

[It's a link, but it won't be (converted) to NSAttributedString.Key.link](https://google.com)

evgeny-sureev avatar Mar 26 '20 08:03 evgeny-sureev

Usually links need to be like this:

[Google] (https://www.google.pt) without the space

If you use it without the https://, or without the www it won't work.

ivancantarino avatar Apr 10 '20 18:04 ivancantarino

This is indeed a problem, even though the example cited should really be using literal escapes for the parentheses. See issue #7.

chockenberry avatar Jun 07 '20 20:06 chockenberry

This should be fixed in 1c489af65ec47293af7b5ec90960ef871fe5b0d5. I'm going to leave this issue open and do some more real world testing, but if you'd like to try it out yourself, go for it!

chockenberry avatar Jun 14 '20 21:06 chockenberry