Closed
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn clear
command. - I have tried
rm -rf node_modules yarn.lock package-lock.json
and re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
Katex equations are not showing properly in rtl languages. for example vector in below, appears unordered as shown in below figure.
$$
\overline{x} =
\begin{bmatrix}
x_1 \\
x_2 \\
\vdots \\
x_n
\end{bmatrix}
$$
Steps to reproduce
Step1: add i18n same as below
i18n: {
defaultLocale: 'fa',
locales: ['fa'],
localeConfigs: {
fa: {
direction: 'rtl',
},
},
},
Step2: install katex based on
https://docusaurus-i18n-staging.netlify.app/docs/markdown-features/math-equations
Step3: add new equation
$$
\overline{x} =
\begin{bmatrix}
x_1 \\
x_2 \\
\vdots \\
x_n
\end{bmatrix}
$$
Expected behavior
to show katex equations in ltr format
Actual behavior
katex equations are unordered.
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used:
- Environment name and version (e.g. Chrome 89, Node.js 16.4):
- Operating system and version (e.g. Ubuntu 20.04.2 LTS):
Reproducible demo
No response
Self-service
- I'd be willing to fix this bug myself.