In an attempt to edit the tag wiki of collatz-sequence I noticed the following strange behaviour.
The conjecture is often stated as a definition by cases and even serves as an example for that notation in the mother of all MathJax demos. I tried to apply that to the tag wiki, by modifying its code to that:
$$
a_{i+1} =\begin{cases}
\frac{a_i}{2} & \text{if $a_i$ is even}\\[2ex]
3 a_i + 1 & \text{if $a_i$ is odd}
\end{cases}
$$
Which renders just fine here:
$$ a_{i+1} =\begin{cases} \frac{a_i}{2} & \text{if $a_i$ is even}\\[2ex] 3 a_i + 1 & \text{if $a_i$ is odd} \end{cases} $$
However, in the tag wiki, not so much:
As can be seen by the output, there seems to be a problem with the newline which is not interpreted as such. I added the test case
$$
a\\b
$$
which also renders properly outside tag wikis:
$$ a\\b $$
The fact that the above behaviour is only present in the tag wiki makes me suspect that it's a bug. Of course, pebkac is always an option and this might be expected behaviour/by design/my fault. Either way, can somebody please explain this?
\[
is used to start a new math block? At least it seems to choke on that ... \$\endgroup\$[2ex]
for those that don't know), but that didn't work either. Also, thea\\b
test case hints at the problem being somewhere else. However, your comment let me start a bit more experimenting and I could reproduce, the problem outside the tag wiki, will post that as an answer for now. \$\endgroup\$