Problems with Markdown rendering: Links that contains apostrophes

AI-generated summary

The discussion addresses a bug in Markdown rendering where links containing apostrophes fail to display correctly when enclosed in parentheses, such as ([link](url)). rriemann reports the issue, noting that the closing parenthesis is missing. frostydog suggests using reference-style links as a workaround. pfaffman questions if the apostrophe should be URL-encoded, while rriemann explains the link was copied directly from Google Maps. mcwumbly directs to the CommonMark specification and community for further discussion, noting that the issue may not be reproducible in the CommonMark Dingus. rriemann confirms the issue doesn’t occur in the Dingus. sam concludes that the problem is resolved with the new CommonMark engine in Discourse.

I want to add this link here: https://www.google.de/maps/place/Laureline’s+Corner/@45.7691847,4.8353492,19z/data=!4m5!3m4!1s0x0:0xcc75bbd0365fd4c4!8m2!3d45.7693561!4d4.835522

As you can there, there is an Apostrophe in the URL -> ' <-

When I now use the [linktext](link url) syntax, e.g. using Ctrl+K to acess the dialog, I get this here:

Map

So far, it works.

Now, I want to add This link within parenthesis: ([linktext](link url)).

Then, it does not work anymore:

(Map)

As you can see, the closing parenthesis is not shown.

You can fix this problem by removing the apostrophe, but then the link is a different one.

1 me gusta

This is a Markdown problem, in general. My suggestion is to do the following:

[linktext][1]

[1]: https://www.google.de/maps/place/Laureline's+Corner/@45.7691847,4.8353492,19z/data=!4m5!3m4!1s0x0:0xcc75bbd0365fd4c4!8m2!3d45.7693561!4d4.835522

Can also be applied to links with parenthesis.

2 Me gusta

Where is the upstream markdown bug tracker? It is still an unattended behaviour and should be fixed somewhere in my humble opinion.

Shouldn’t the apostrophe be URL encoded?

This is a good question. I clicked on Share on Google Maps and copy’n’pasted
the link including the apostrophe.

Eventually Discourse will use some implementation of CommonMark.

Try it here:

And discuss here:

6 Me gusta

I could not reproduce this problem with commonmark Dingus.

5 Me gusta

Fixed now with our new CommonMark engine, see: CommonMark testing started here! - #2

3 Me gusta