# Closing dollar is sometimes not recognized when the math snippet contains a less-than sign

There is a strange interaction between Markdown and MathJax when the character < appears in a math snippet which is followed by some (not all) non-whitespace character. I would have expected < not to have any special meaning between $signs and the character after the closing$ not to matter, but this is not always the case.

I say “then $a<b$”. More $math$.

I say “then $a<b$”. *Emphasis* $math$.

I say “then $a I say “then$aEmphasis $math$.

I observed this in Chrome 17.0.963.79. Initially while composing this answer, and the screeenshot above is from https://cs.stackexchange.com/questions/ask (my screenshot-grabbing extension sometimes puts the wrong URL).

• Can confirm for Firefox 10.0.2. – Raphael Mar 26 '12 at 6:31
• A workaround is to use \lt and \gt. – Aryabhata Mar 28 '12 at 21:35