Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MathTeX symbols not rendered correctly #8566

Open
Kiggi opened this issue Oct 18, 2024 · 0 comments
Open

MathTeX symbols not rendered correctly #8566

Kiggi opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
mod:rich-text Module: related to rich-text editing (including Virgo) type:bug Something isn't working

Comments

@Kiggi
Copy link

Kiggi commented Oct 18, 2024

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

@doodlewind doodlewind added type:bug Something isn't working mod:rich-text Module: related to rich-text editing (including Virgo) labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod:rich-text Module: related to rich-text editing (including Virgo) type:bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

3 participants