Obsidian improperly renders large brackets in LaTeX math mode

Here is some example LaTeX to illustrate:

$$
\left[ \begin{array}{}
a_{11} & a_{12} & a_{13} \
a_{21} & a_{22} & a_{23} \
a_{31} & a_{32} & a_{33} \
a_{41} & a_{42} & a_{43} \
\end{array} \right]

\left( \begin{array}{}
x_1 \ x_2 \ x_3
\end{array} \right)

\quad = \quad

\left( \begin{array}{}
b_1 \ b_2 \ b_3 \ b_4
\end{array} \right)
$$

It renders like this:

There are weird gaps in between the top and bottom portions of the brackets that shouldn’t be there.

This persists whether or not I disable CSS snippets and community plugins.

It isn’t unique to LaTeX’s array environment. For example, the curly bracket produced by the cases environment is also rendered improperly. However, brackets drawn with \large, \Huge, etc. are unaffected.

For example, “$\Huge \left( a+b \right)$” renders properly.

Debug Info:

SYSTEM INFO:
Obsidian version: v1.1.9
Installer version: v1.0.0
Operating system: Windows 10 Home 10.0.22621
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: light
Community theme: none
Snippets enabled: 9
Restricted mode: off
Plugins installed: 3
Plugins enabled: 2
1: Juggl v1.4.0
2: Extended MathJax v0.2.0

1 Like

Does it also happen when you zoom out or choose a smaller font size?

This is not related to the issue you have, but you can simplify the notation for these matrices:

$$
\begin{bmatrix}
a_{11} & a_{12} & a_{13} \\
a_{21} & a_{22} & a_{23} \\
a_{31} & a_{32} & a_{33} \\
a_{41} & a_{42} & a_{43} \\
\end{bmatrix}
$$

$$
\begin{pmatrix}
b_1 \\ b_2 \\ b_3 \\ b_4
\end{pmatrix}
$$
1 Like

Apparently it does render properly if I increase the font size or zoom in beyond a certain point. At 100% zoom, font size 19+ causes it to render correctly, while size 18- causes it to render exactly like shown above.

I’m aware of the bmatrix and pmatrix environments - the issue occurs with those also.

1 Like