Markdown and hashtag


(Tristan Goguillot) #1

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 >
#discourse

Should we bring this issue to markdown-js?


(Dave McClure) #2

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

#discourse

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:


(Tristan Goguillot) #3

Thanks for the tip. :slight_smile:


(Jeff Atwood) #4