halogenica/beautifulhugo

KaTeX table rendered as literal string

sorokod opened this issue · 2 comments

Was bounced here from Hugo

With the latest version of the theme.

The following KaTeX snippet renders correctly on https://katex.org/

\begin{array}{c:c}
a & b \
c & d \
\end{array}

but the generated content from the same bracketed by $$s

is rendered as the literal:

$$ \begin{array}{c:c} a & b \ c & d \ \end{array} $$

Duplicate of #239.

Workaround: KaTeX/KaTeX#1831 (comment)

$$
\begin{array}{c:c}
a & b \\\\
c & d \\\\
\end{array}
$$

Thanks for the quick response - this works.