Math RTL Support – Obsidian Plugin

This plugin fixes text direction for right-to-left[^rtl] text in math mode.

Before:

RTL text inside MathJax can render backwards:

$$
D(x) = \begin{cases}
0 & x \text{ ילנויצר} \
1 & \text{ يقيقح ريغ}
\end{cases}
$$

After

$$
D(x) = \begin{cases}
0 & x \text{ רציונלי} \
1 & \text{ غير حقيقي}
\end{cases}
$$

Original snippet used:

$$
D(x) = \begin{cases}
    0 & x \text{ רציונלי} \\
    1 & \text{ غير حقيقي}
    \end{cases}
$$

Settings

  • RTL font style inside math: leave MathJax fonts unchanged, force serif, or use the app text font.

[^rtl]: Detected right-to-left text covers Hebrew and Arabic Unicode ranges, including Arabic supplement/extended characters and Arabic presentation forms.

Read more here: Source link