Fixing KaTeX Formula and Code Display in Right-to-Left Languages
When writing in RTL languages like Hebrew or Arabic, KaTeX formulas and code lines may appear reversed ¡ª rendered right-to-left instead of the standard left-to-right direction. This common issue affects platforms like ChatGPT and many websites, making math and code harder to read.
This extension automatically forces all KaTeX formulas and code blocks to display left-to-right (LTR), without altering the rest of the text, without re-rendering, and without affecting page performance.