<anki-mathjax block="true">\begin{array}{|c|c|c|}
\hline
1 & 2 & 3 \\
\hline
1 & 2 & 3 \\
\hline
\end{array}</anki-mathjax>
it results in a rectangle the opposite colour of the Anki window theme and the size of the what the MathJax should be displaying.
This happens in the editor or card browser, however the correct output is displayed when reviewing the card and on the preview pop-up from the editor pane.
When removing their the top or bottom \hline the bug stops happening until it is added back, however, the vertical lines around the middle column are not displayed in the editor and browser.
Tested on Anki 2.1.55 beta 6 (ca116699) and Anki 2.1.54 (b6a7760c)
Hi everyone,
since I started using Anki, I’ve encountered some rendering problems, specifically when creating tables with MathJax in my flashcards.
There’s a weird behavior when editing them and I can’t figure out why it happens.
I have the same problem both on my PC and my laptop (W11, same Anki latest version).
The best way to explain this bug is with an example table like this one:
Now, if I view this card in the Anki editor, it shows just a big rectangle (filled in white/black depending on the theme), but when I preview or revise the flashcard, the table renders correctly.
The only way I found to visualize the content of the MathJax table (in the editor) is to remove at least one of the external borders, so either “|” in the array or “\hline” in the table content.
So for example, this would render in the editor correctly (but without external borders):