Persian RTL Markdown PreviewEdit and preview Persian/Farsi Markdown, text and subtitle files with correct RTL and mixed-language layout. فارسیاین افزونه یک ویرایشگر کامل فارسی برای پروندههای نشانگذاری، متن ساده و زیرنویس فراهم میکند. همچنین جهت نوشتار و چیدمان پیشنمایش داخلی ویژوال استودیو کد را اصلاح میکند. تیترها، بندها، فهرستها، نقلقولها و خانههای جدول بهدرستی راستبهچپ میشوند. متنهای کاملاً انگلیسی و قطعههای کد چپبهراست باقی میمانند. اگر یک بند شامل هر دو زبان باشد، وجود نویسههای فارسی باعث میشود جهت پایهٔ همان بند راستبهچپ انتخاب شود. قلم فارسی همراه افزونه است و بدون نصب جداگانه بارگذاری میشود. ویرایشگر اختصاصی سه حالت ویرایش، پیشنمایش و نمایش دوبخشی دارد و تغییرات را مستقیماً در همان پرونده ذخیره میکند. فرمولها بهصورت متنی و قابل انتخاب نمایش داده میشوند و نمودارهای دیداری، فهرست کارها، پاورقی و فهرست مطالب نیز پشتیبانی میشوند. برای نوشتار فارسی ابزار اصلاح حروف و نشانهها، نیمفاصله و تبدیل رقم در دسترس است. قالبهای رایج زیرنویس با زمانبندی چپبهراست، اعتبارسنجی، تشخیص همپوشانی و تبدیل میان قالبها نمایش داده میشوند. خروجی مستقل وب و چاپ یا ذخیره به سند نیز از داخل ویرایشگر ممکن است. EnglishThis extension adds a full Persian RTL editor for Markdown, plain-text, SRT, WebVTT and ASS/SSA subtitle files, while continuing to fix text direction and layout in VS Code's built-in Markdown Preview. Persian blocks are rendered right-to-left, while English-only text and code remain left-to-right. Mixed-language blocks are detected per block, including paragraphs, headings, lists, blockquotes, and table cells. The bundled Noto Sans Arabic font provides consistent offline rendering without requiring a separate font installation. The custom editor supports edit, split and preview modes and saves through VS Code's normal text-document workflow, including Undo/Redo and dirty-file tracking. It also renders selectable MathML equations and Mermaid diagrams, validates subtitles, provides Persian writing tools, and exports HTML or print-ready PDF output. The original built-in Markdown Preview integration remains available. Preview
Features
InstallFrom a VSIX file
UseOpen any To edit a supported Markdown, text or subtitle file in the custom editor, open the Command Palette and run Open with Persian RTL Editor. You can also right-click the editor title and select the same command, or use Reopen Editor With… → Persian RTL Editor. Use The custom editor is optional. VS Code's standard text editor and built-in Markdown Preview remain available at any time. How it worksThe extension inspects each rendered block. A block containing Persian or Arabic-script characters receives an explicit RTL direction; English-only blocks remain LTR. Code and SRT timestamps are always isolated as LTR. The editor uses VS Code's Custom Text Editor API, so changes participate in the normal document, save and undo lifecycle. Development
The package command creates a distributable ContributingBug reports and pull requests are welcome. Please read CONTRIBUTING.md before contributing. For security issues, follow SECURITY.md. LicenseThe extension code is MIT licensed © Sina Tabar. The bundled Noto Sans Arabic font is distributed under the SIL Open Font License 1.1. |

