No description
Find a file
orelby cea5aaa759 Revise README.md to match Obsidian guidelines
Remove "Obsidian" from title.
2025-07-04 18:31:31 +03:00
screenshots Add README 2025-04-23 18:39:48 +03:00
.editorconfig obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
.eslintignore obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
.eslintrc obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
.gitignore obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
.npmrc obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
esbuild.config.mjs obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
LICENSE Create LICENSE 2025-04-26 14:10:31 +03:00
main.ts Support configurable RTL & LTR command names 2025-04-23 17:59:51 +03:00
manifest.json Update metadata & dependencies 2025-04-23 18:37:02 +03:00
package-lock.json Update metadata & dependencies 2025-04-23 18:37:02 +03:00
package.json Update metadata & dependencies 2025-04-23 18:37:02 +03:00
README.md Revise README.md to match Obsidian guidelines 2025-07-04 18:31:31 +03:00
styles.css Support configurable RTL & LTR command names 2025-04-23 17:59:51 +03:00
tsconfig.json obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
version-bump.mjs obsidian-sample-plugin 2025-04-22 18:33:41 +03:00
versions.json Update metadata and dependencies 2025-04-22 18:49:18 +03:00

RTL Math Text

RTL Math Text is a plugin for Obsidian that adds basic support for mixing right-to-left (RTL) and left-to-right (LTR) text in MathJax expressions through the use of custom LaTeX commands.


Features

  • Add strictly right-to-left (RTL) text (e.g. Hebrew) inside math expressions using \R{\text{...}}
  • Nest strictly left-to-right (LTR) text (e.g. English) inside RTL using \L{...}
  • Nest math (e.g. numbers) inside RTL/LTR using $...$ in display mode or using \(...\)
  • Configure the names of the \R{...} and \L{...} commands in the settings

⚠ Note: The plugin does not add support for languages with combining letters (e.g. Arabic). This is expected to be resolved with the upcoming release of MathJax 4.0 (see mathjax/MathJax#3041).


Examples

Getting started

Screenshot

$\R{\text{שלום, עולם!}}$

Nesting LTR and math inside RTL

Screenshot

$$
\underbrace{a_1 \| a_2 \| \cdots \| a_n}_{
\R{\text{
שרשור
(\L{concatenation})
האותיות ב-$
a$}}}
$$

(line breaks for readability)


Manually installing the plugin

  • Download the latest release from the release page
  • Unzip & copy the files into your .obsidian/plugins/rtl-math-text folder
  • Enable the plugin from Obsidian settings
  • Reload Obsidian or reopen your notes

Manually building the plugin

  • Clone or download this repo
  • Make sure your NodeJS is at least v16 (node --version)
  • npm i or yarn to install dependencies
  • npm run build for production build (or npm run dev for dev build in watch mode)
  • Copy main.js, styles.css, and manifest.json into your .obsidian/plugins/rtl-math-text folder

License

MIT