BUG: paths that contain parentheses result in broken links

I think this is a problem with Markdown in general, and I expect it’s probably known and there’s not much that can be done about it, but…

If you’re composing in an app that uses Markdown (in my case, Bear.app)…
…and you create a link to a file on your drive that has parentheses in its file:// path…
…you end up with a broken link, and broken text.

THIS WORKS FINE:
[Text](file:///Users/UserName/Folder/Subfolder/documentname.pdf)

BUT THIS DOES NOT
[Text](file:///Users/UserName/(Folder)/Subfolder/documentname.pdf)

Note the parentheses around “Folder.”

In commonmark the nested parens work fine, as you can see here:

https://spec.commonmark.org/dingus/?text=[Text](file%3A%2F%2F%2FUsers%2FUserName%2F(Folder)%2FSubfolder%2Fdocumentname.pdf)

1 Like

My mistake. I thought the app where I was having this problem used CommonMark, but it turns out they’re soon moving to CommonMark, and I misunderstood that.

Cheers.