Referring to the comment I made here MySQLi Select hashtag from table

Trying to use # someTag did not work so well for me in the comments and same thing goes for this post, edit this post and you will see ` # someTag`

I assume this is on purpose, can anyone enlighten me?

  • 1
    No, backticks, like * and _ to make text bold and / or italics, must be tight up against the word to prevent single characters used in a sentence to start markup. – Martijn Pieters Jan 8 '14 at 15:39
  • 1
    This is a feature of MarkDown, not specific to Stack Exchange. – Martijn Pieters Jan 8 '14 at 15:40
  • @MartijnPieters is there a reason why your explanation does not hold true when comparing a post vs. comment? – MonkeyZeus Jan 8 '14 at 15:42
  • Hrm, trying to find that reason now... that surprised me actually. – Martijn Pieters Jan 8 '14 at 15:42
  • But note how the leading whitespace has been stripped. It doesn't matter how many spaces you put at the start, they are all removed from the output. – Martijn Pieters Jan 8 '14 at 15:44
  • 1
    I do notice that, but I think we've uncovered an inconsistency between comments and posts now because my comment completely failed to become a code block in my SO comment =) – MonkeyZeus Jan 8 '14 at 15:45
  • @TimStone thanks! I think that is exactly what I was looking for. – MonkeyZeus Jan 8 '14 at 15:49

Browse other questions tagged .