Markdown and hashtag

Hello Discourse !

The Markdown implementation in Discourse does not require to add a space after a # to convert to header. The problem with this behavior is that you cannot easily use # in your text, which is now pretty popular (even just for fun, without real tag management like on FB).

Other implementation like GitHub or Zendesk make the difference between the two cases:
#discourse > #discourse
# discourse >

Should we bring this issue to markdown-js?

1 Like

A workaround for now is to put a space before the #:


You might want to discuss this over on the commonmark forum as I think discourse will eventually adopt a library that supports that spec.

edit: there is a topic on this already over there:

1 Like

Thanks for the tip. :slight_smile: