How in-line link URL with ) and # in Reddit?

The # after a path refers to the DOM Element with the id following the #.

The only reason for this not to work on reddit is, if they somehow dont allow links containing the # character. In this case, there is no way for you to specifically link to the id.