How do I add a hyperlink with spaces in it using markdown?

Been trying to add a link on Trello to a bookmarked destination in a PDF using markdown.

I'm appending

 #nameddest=this destination

to the end of my URLs to add a reference to a specific spot in the document, but the space breaks the link. Is it possible to create a link with spaces?


Solution 1:

According to CommonMark1, you can use links with spaces as long as the URL is wrapped in angle brackets e.g.

[Link caption](<https://duckduckgo.com/?q=test this!&t=ffab>)

1: The minimum common denominator that all Markdown flavours are to support. I see the StackExchange's implementation doesn't support it. Sigh!

Solution 2:

I'd urlencode the link #nameddest=this%20destination instead of #nameddest=this destination.

Just tried in Trello linking like this works for me:
[like this](https://www.google.com/search?q=my%20query)

If you want to URL to be linked just make it [https://www.google.com/search?q=my%20query](https://www.google.com/search?q=my%20query)