Project
BidiMD extension
VS Code / Open VSX extension for bidirectional Markdown preview — RTL-first for Persian and Arabic, without patching the workbench.
- TypeScript
- VS Code API
BidiMD is a VS Code / Cursor / Open VSX extension for Markdown preview when Persian or Arabic should read RTL and code blocks should stay LTR. It uses the official markdown.styles API — it does not patch the workbench.
Direct answer
Install from the Marketplace, run BidiMD: Enable (or Auto), open Markdown preview. RTL-dominant docs flip; code stays LTR.
How it behaves
- Auto — inject RTL CSS when the active Markdown looks RTL-dominant
- Force RTL / Force LTR — explicit direction modes
- Status bar shows Off / Auto · RTL / Force RTL
Made for editors who write Persian or Arabic docs every day and refuse to break their install to get a readable preview.