Latex array can't break line

$A=\begin{bmatrix}
1&3\\
3&3
\end{bmatrix}$

display:

A=[1 33 3 ]

what’s the problem? the problem of hugo or problem of the theme I’m using?

It’s a problem with Blackfriday. Believe it or not, the workaround is to do \\\\\\ where \\ is needed.

I came across this when supporting those line breaks in Org → Markdown exports in ox-hugo (Now \\ at EOL in Org auto-translates to \\\\\\ in Markdown… so Org + ox-hugo users don’t have to remember to implement this hack).

Someone also has submitted a PR to Blackfriday about 5 months ago for proper support of MathJAX in Blackfriday, but looks like no one is interested in reviewing/merging it.