SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.63k stars 269 forks source link

[Bug] Links surrounded by brackets don't render correctly #79

Closed julo15 closed 4 years ago

julo15 commented 4 years ago

For the markdown string SwiftyMarkdown(string: "Hello ([hello](https://www.google.com))"), the rendered attributed string shows up incorrectly.

In SwiftyMarkdown v0.6.2, this shows up as: image (missing the end bracket)

In SwiftyMarkdown v1.1.0, this shows up as: image (doesn't tokenize the link at all)

I would expect this to show up as:

Hello (hello)

julo15 commented 4 years ago

Related to: https://github.com/SimonFairbairn/SwiftyMarkdown/issues/28

julo15 commented 4 years ago

thanks for fixing this @SimonFairbairn ! will give 1.2.0 a shot soon