Open vincentwoo opened 9 years ago
I've just run into this also. Wanted to use C# in a header but all I get is C or C\
Although on a hunch, after looking at Daring Fireball's spec for header syntax, I tried adding a trailing space to my heading and got the #
sign to render.
In otherwords:
## Now Consider C#
didn't render the trailing #
but
## Now Consider C#_
(if you replace that underscore with a trailing space) the #
rendered fine.
In the first example, redcarpet properly turns
\#
into a#
, but#\#
, a header which should have just a pound sign as its contents, turns into a header with just a slash in it. Using the newline-with-dashes to denote a header seems to work, though.