# Auto-complete with hashtag doesn't activate when hashtag is first character on a new line

**URL:** <https://meta.discourse.org/t/auto-complete-with-hashtag-doesnt-activate-when-hashtag-is-first-character-on-a-new-line/131676>\
**Category:** Feature\
**Created:** [23 באוקטובר,‏ 2019,‏ 2:07am UTC](https://meta.discourse.org/t/auto-complete-with-hashtag-doesnt-activate-when-hashtag-is-first-character-on-a-new-line/131676 "2019-10-23T02:07:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)\
**Post date:** [23 באוקטובר,‏ 2019,‏ 4:00am UTC](https://meta.discourse.org/t/auto-complete-with-hashtag-doesnt-activate-when-hashtag-is-first-character-on-a-new-line/131676/2 "2019-10-23T04:00:28Z")

</div>

I expect that occurs because the normal use of hash at the start of a line is for a heading …

# … like this one

In markdown `#text` is a heading. Commonmark has a stricter specification of `# text` so it is possible that this is to maintain compatibility with older markdown.

To avoid the problem, which is not very common, I just put a space before the hash so autocomplete works.

If I mistakenly, out of habit, put the space before a heading then the heading will still work, e.g.:

# hash prefixed by space

# heading

---

_[View the full topic](https://meta.discourse.org/t/auto-complete-with-hashtag-doesnt-activate-when-hashtag-is-first-character-on-a-new-line/131676)._
