I'm completely stumped by this. The question Enegy Expectation Value uses the LaTeX command \bk
, which is definitely not a standard LaTeX command. Quite fittingly, it fails to display correctly on the question page.
Seeing this, I clicked on the edit
button to fix that LaTeX, but to my great surprise I was met by this:
Note, in particular, that the \bk
s evaluate as bra-ket pairs.
I will go ahead and change this into more standard LaTeX, as there exist devices on which this fails to display correctly, but I'm more interested in why and how on Earth this happened. Evidently the display and edit pages are calling different instances of MathJax, but how come they support different command sets? This strikes me as a bug (the OP here thought it would display correctly and it didn't), for one, but more than fixing it I'm interested in any details of the back end that are responsible for this behaviour.
I'm running Google Chrome 47.0.2526.80 (64-bit) over Ubuntu 14.04.
Edit
Aha, Sebastian Riese points out that the responsible line,
$$\newcommand{\bk}[1]{\left\langle #1 \right\rangle}$$
needs to be at the top of the post for this to work on question display mode. This is definitely the expected behaviour, and I'm confused as to why the edit mode thinks it's OK. Maybe it's running MathJax multiple times over the post, and picking up definitions for the next round? This strikes me as buggy behaviour, to be honest.