docs icon indicating copy to clipboard operation
docs copied to clipboard

Request for Documentation: add advanced link formatting info for complex urls

Open mm-cloud-bot opened this issue 4 years ago • 7 comments
trafficstars

Mattermost user sven.huester from https://community-daily.mattermost.com has requested the following be documented:

You might need to use yet another way of doing Markdown links with the "reference-style" links to hide that fully.

[link text](a)

[a]: https://example.com

mm-cloud-bot avatar Sep 21 '21 16:09 mm-cloud-bot

@svelle - Can you provide some context for this docs issue, please? Under what circumstances would a user want to use this type of Markdown link, and to achieve what outcome?

cwarnermm avatar Oct 25 '21 13:10 cwarnermm

Hey @cwarnermm for sure!

So take for example a wikipedia page with parentheses in the url and you want to create a short link for that say Saw Movie Franchise (took this from a reddit example no particular intention :D )

The url looks like this https://en.wikipedia.org/wiki/Saw_(disambiguation)#Films_and_associated_media

A lot of markdown parsers including our own struggle with the parentheses in that URL and will end the custom link before the url is completed resulting in it being cut off to something like this: https://en.wikipedia.org/wiki/Saw_(disambiguation

The example from the opening post will work around that as everything behind the colon is interpreted as the url for [a] which can then be used for the link further up.

So in a real world example it would look like this:

[Saw Movie Franchise](a)
[a]: https://en.wikipedia.org/wiki/Saw_(disambiguation)#Films_and_associated_media

svelle avatar Oct 25 '21 13:10 svelle

Can I take this issue? @cwarnermm

Sayanta66 avatar Nov 03 '21 18:11 Sayanta66

Thanks, @Sayanta66! I've assigned this docs ticket to you.

cwarnermm avatar Nov 03 '21 18:11 cwarnermm

Thanks a ton :)

Sayanta66 avatar Nov 03 '21 18:11 Sayanta66

@Sayanta66 - Are you actively working on this? Would you like to keep it assigned to you?

cwarnermm avatar Dec 07 '21 13:12 cwarnermm

yup!!! I am still searching on the solutions

Sayanta66 avatar Jan 10 '22 05:01 Sayanta66