blocksuite
blocksuite copied to clipboard
MathTeX symbols not rendered correctly
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):
Rendering in AFFiNE:
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):
Rendering in AFFiNE: