# Markdown and hashtag

**URL:** https://meta.discourse.org/t/markdown-and-hashtag/22278
**Category:** Feature
**Created:** [18 نوفمبر 2014، 6:47م UTC](https://meta.discourse.org/t/markdown-and-hashtag/22278 "2014-11-18T18:47:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tgoguillot](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tgoguillot](https://meta.discourse.org/u/tgoguillot)
#### Post date: [18 نوفمبر 2014، 6:47م UTC](https://meta.discourse.org/t/markdown-and-hashtag/22278/1 "2014-11-18T18:47:04Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [18 نوفمبر 2014، 6:51م UTC](https://meta.discourse.org/t/markdown-and-hashtag/22278/2 "2014-11-18T18:51:28Z")

</div>

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

#discourse

You might want to discuss this over on the [commonmark forum](http://talk.commonmark.org/) as I think discourse will eventually adopt a library that supports that spec.

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

> **[\#heading Not working](https://talk.commonmark.org/t/heading-not-working/819/4)**
>
> Related question: why does # heading require a space after the #, but blockquote not require a space after the \>? The main reason for requiring a space after the # is that it is not uncommon to have things like #15 in text, and we don’t want...

---

<div class="post-metadata">

### Author: ![tgoguillot](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@tgoguillot](https://meta.discourse.org/u/tgoguillot)
#### Post date: [18 نوفمبر 2014، 7:16م UTC](https://meta.discourse.org/t/markdown-and-hashtag/22278/3 "2014-11-18T19:16:06Z")

</div>

Thanks for the tip. 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [18 نوفمبر 2014، 11:22م UTC](https://meta.discourse.org/t/markdown-and-hashtag/22278/4 "2014-11-18T23:22:05Z")

</div>


