blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

MathTeX symbols not rendered correctly

Open Kiggi opened this issue 1 year ago • 0 comments

The LaTeX renderer of the equation block seems to render some math symbols incorrectly. This seems to be an issue, how BlockSuite embeds the katex library, as all these features work when using the katex library directly.

Matrices

If you create matrices with multiple lines in an equation block, it does not display the brackets for all lines.

Recreatable with this LaTeX code:

\begin{bmatrix}
1\\1\\-3
\end{bmatrix}
\begin{pmatrix}
1\\1\\-3
\end{pmatrix}
\begin{Bmatrix}
1\\1\\-3
\end{Bmatrix}
\begin{vmatrix}
1\\1\\-3
\end{vmatrix}
\begin{Vmatrix}
1\\1\\-3
\end{Vmatrix}

Expected rendering (tested in katex playground): image

Rendering in AFFiNE: image

Math fonts

The LaTeX command \mathbb does not modify the font.

Recreatable using this LaTeX code:

\mathbb N \quad \mathbb R

Expected rendering (tested in katex playground): image

Rendering in AFFiNE: image

Kiggi avatar Oct 18 '24 11:10 Kiggi