christianselig / apollo-bugs

A public bug tracker for Apollo, an iOS Reddit app
228 stars 15 forks source link

Error in formatting of links with brackets #1539

Open dyviknilsen opened 2 years ago

dyviknilsen commented 2 years ago

Describe the bug When viewing a hyperlink with a link label, and the link ends with a round bracket, it is formatted incorrectly – the bracket at the end of the link is not considered part of the link, but rather a part of reddit's formatting. The bracket that is supposed to be part of reddit's formatting is just considered as text.

To Reproduce View this comment: https://reddit.com/r/formula1/comments/rk936o/_/hpbaf7v/?context=1

iOS version: 15.0.2 Apollo version: 1.11.99 iOS device: iPhone XS Jailbroken: No Reproducible: Yes

Expected behavior The first of the two closing round brackets should be part of the link, the second should be part of reddit's link formatting.

Screenshots https://imgur.com/a/jiGPLkZ

Additional context The formatting is correct in reddit's official app and on the website.

edwinyoung commented 2 years ago

This is a Markdown parsing issue that is down to the user, not Apollo - the link the user is attempting to link has parentheses in it.

In other words, to get it to link correctly the user should put [Nope](https://en.wikipedia.org/wiki/McLaren#Renault_engines_(2018–2020\)) instead.