Matrix rendering error when exporting PDF

Steps to reproduce

  1. Open Obsidian and create a new note.
  2. Enter a matrix in the notes, for example
    $$
    \begin{pmatrix}
    1 & 1 & 1\
    1 & 1 & 1\
    1 & 1 & 1
    \end{pmatrix}
    $$
  3. Export as PDF file.

Did you follow the troubleshooting guide? [Y/N]

Yes

Expected result

A correct matrix rendering, for example (This matrix was exported in version 1.6.7)

Actual result

A incorrect matrix rendering, for example (This matrix was exported in version 1.7.7)

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.7.7
Operating system: Windows 10 Home 10.0.19045
Login status: not logged in
Language: zh
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Blue Topaz v2024110601
Snippets enabled: 0
Restricted mode: on

Additional information

As shown in the figure, when exporting a Markdown file to PDF, rendering errors occur in matrices.

After my testing, this bug does not exist in version 1.6.7, but it exists in version 1.7.4 and later versions (including the latest version).

This has forced me to revert to an older version. Please fix this bug as soon as possible.

Are you sure it’s not a font or theme (etc.) issue?

It looks fine exported from the Sandbox vault for me (macOS v15.1.1, Obsidian v1.7.7)

$$
\begin{pmatrix}
1 & 1 & 1\\
1 & 1 & 1\\
1 & 1 & 1
\end{pmatrix}
$$

I tried using the default font and theme, and closed all plugins, but the problem still persists.
However, this issue does not exist in version 1.6.7.

The system I am using is Windows 10, maybe the output of MacOS and Windows 10 is different?
Can you test it on the Windows system?

Sure, I can test it on a Win11 device tomorrow if no one gets around to it.

works fine for me in windows 11.
There were not changes related to mathjax between 1.6.x and 1.7.

Perhaps you have a variation of this problem

2 Likes

Yes, works fine for me as well on windows 11, Obsidian v1.7.7.


I’d try in the Sandbox vault or a new test vault.