halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.13k stars 602 forks source link

KaTeX table rendered as literal string #449

Open sorokod opened 1 year ago

sorokod commented 1 year ago

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} $$
jmooring commented 1 year ago

Duplicate of https://github.com/halogenica/beautifulhugo/issues/239.

Workaround: https://github.com/KaTeX/KaTeX/issues/1831#issuecomment-453703898

$$
\begin{array}{c:c}
a & b \\\\
c & d \\\\
\end{array}
$$
sorokod commented 1 year ago

Thanks for the quick response - this works.