Markdown code:
Let $\delta$ be a three-way switch between experiments: $$
\begin{cases}
0, & Eval^0 \\
1, & Eval^1 \\
2, & Rand \mbox{: truly random function}
\end{cases}
$$
In pandoc mode, the WYSIWYG renders incorrectly as:

But the converted and compiled latex looks fine

Markdown code:
In pandoc mode, the WYSIWYG renders incorrectly as:
But the converted and compiled latex looks fine