Use goldmark-mathjax extension

That comment does not jive with my experience. When I insert a display math, e.g.

$$
\begin{vmatrix}a & b\\
c & d
\end{vmatrix}
$$

It no longer displays correctly (once processed by MathJax) because the markdown -> html translation has inserted additional tags.

i.e. awwong’s claim is incorrect: as well as wrapping the result in html tags (unimportant) it also ensures that the contents of the display math block are not treated as markdown (very important). More precisely, plain goldmark transforms the above into:

$$
\begin{vmatrix}a &amp; b\<br>
c &amp; d
\end{vmatrix}
$$

The main problem is that \\ has turned into \, so there is no longer a second line in the matrix.