Consider this question:
is x-- > 0 && array[x]
well defined behavior in c++?
Unfortunately, the question title is displayed on SO as:
is `x— > 0 && array[x]` well defined behavior in c++?
There are two issues here:
- Less severe, the backticks are displayed verbatim and don’t delimit a code span. Not very nice but bearable. On the other hand, MathOverflow has this really nice math mode even in titles – why not also introduce this on SO for code?
- The
--
operator is transformed into an em-dash. This is slightly misleading and simply unnecessary. I am all in favour of using SmartyPants (or whatever SO uses) to glam up the question title typography. But this shouldn’t go at the cost of correctness.
So I suggest allowing limited Markdown in titles (e.g. as in comments?) or at least fixing the formatting bug.