Use Journals for your notes and blogging!

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:

C\

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

### C\# []()

This results in the header being correctly rendered:

C#


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.


Software development notes and articles

Email garethbrown: mail@appsoftware.com

UI block loader
One moment please ...