Software Development

A journal for sharing all things software development related

Escaping Hash Characters in Markdown

Wed, 08 Jan 2020 16:21 UTC by garethbrown

This gist here suggests a way to escape hash characters where they trail at the end of a string.

I found that the suggested solution (in the above link) of adding a space to the end of the string did not work for the implementation of Github markdown I was using:

> ### C\# <-- See it, see the space?

I got:


But I did find a work around, which was to add empty markdown link syntax:

### C\# []()

This results in the header being correctly rendered:


The information on this site is provided “AS IS” and without warranties of any kind either
express or implied. To the fullest extent permissible pursuant to applicable laws, the author disclaims all warranties, express or implied, including, but not limited to, implied warranties of merchantability, non-infringement and suitability for a particular purpose.

UI block loader
One moment please ...