Let's say I have a README.md and I'd like to create a link to a file that contains spaces in its name, file with spaces.md. I'd like to be able to jump to the file's source code.
After inspecting the element in the browser, I figured out what the href should be (changed it manually, then clicking on it brought me to the page I want to reach):
Unfortunately I couldn't accomplish that. Some of the things I have tried so far:
It results in the following HTML in Bitbucket:
You can play with the example repository I created.
Appears to be a tremendous amount of variation in how implementations render (updated Waylan's link) those. However, your second example seems to work most consistently. If that doesn't work, then I would report it as a bug. – Waylan