Can someone explain to me, what happens in this question on mine? I wanted to write something like
but in the question it seems like the LaTeX markup got confused:
Is there a way to prevent this?
I have checked in a fix for this; it will work as expected in the next build of the site.
The separation of Markdown and LaTeX wasn't taking code spans into account, so when seeing
`$foo` and `$bar`
it prevented Markdown rendering in the part between the two dollar signs. The Markdown renderer thus saw
`[something I'm not touching]bar`,
turning the whole thing into a code span, and eventually we ended up with
<code>$foo` and `$bar</code>