Katex transform.ToMath throws error with valid syntax

The latest version of katex.js throws this warning in the browser console:

LaTeX-incompatible input and strict mode is set to 'warn': In LaTeX, \\ or \newline does nothing in display mode [newLineInDisplayMode]

But it (sort of) works:

image

The right way to handle this with either MathJax or KaTeX is:

$$
\begin{aligned}
\begin{matrix}
&&&2&3&4 \\
\times &7&6&5&& \\
\hline
\end{matrix} \\
{2}\times{5} = 10
\end{aligned}
$$

Both MathJax and KaTeX render the above to:

image