MDash
By Mohammad AniniLast Updated

Themes and Direction

Make the workspace comfortable to read and give each document the right reading direction. Choose your appearance, accent, and text size in Settings, then use document metadata for Arabic, Persian, or mixed-language writing.

Table of Contents

Application Theme

MDash has three application theme preferences:

  • System follows the operating system appearance as it changes.
  • Light uses a bright background and dark text.
  • Dark uses a dark background and light text.

On the first visit, MDash stores Light or Dark to match the operating system. This keeps the header control as a familiar two-state Light and Dark toggle. Choose System explicitly in Settings when you want MDash to follow later operating-system changes.

The command palette also provides Theme: System, Theme: Light, and Theme: Dark.

Accent Color

In Settings → Theme, choose Garnet, Cobalt, Amber, Teal, Forest, or Plum under Accent Color. The selected preset keeps the same identity across themes, while individual colors adjust for contrast in Light and Dark.

Text Size and Code Font

Open Settings → Fonts to set Text Size, Code Font, and Coding Ligatures. Check how your choices look in Split or Preview.

Text Size adjusts Editor, Preview, and public reading text. Use Smaller Text and Larger Text in the public bottom bar, including on mobile. In the mobile workspace, use Text Size in the More menu. Code Font affects the editor, code blocks, shortcuts, and technical hints. Coding Ligatures join supported operators visually without changing the characters. See Code and Syntax Highlighting for the font choices.

Per-Document Direction

Choose Edit Metadata in an editable Markdown document. Set Document Direction to Auto, Left to Right, or Right to Left, then choose Save Metadata. You can also right-click the document tab and choose Direction.

Rendered blocks use automatic direction by default. The browser determines direction from the first strong directional character in each block, allowing paragraphs in different scripts to share a document.

English can sit beside Arabic text مثل هذا in the same paragraph.

For example, a multilingual meeting note can place these paragraphs one after another:

Meeting notes: choose an accessible entrance.

ملاحظات الاجتماع: اختر مدخلاً يَسْهُلُ الوصولُ إليه.

اجلاس کے نوٹس: ایک قابلِ رسائی داخلی راستے کا انتخاب کریں۔

یادداشت جلسه: انتخاب ورودی قابل دسترس.

Rendered Result

Meeting notes: choose an accessible entrance.

ملاحظات الاجتماع: اختر مدخلاً يَسْهُلُ الوصولُ إليه.

اجلاس کے نوٹس: ایک قابلِ رسائی داخلی راستے کا انتخاب کریں۔

یادداشت جلسه: انتخاب ورودی قابل دسترس.

Arabic, Persian, and Urdu read right to left. Automatic direction lets each paragraph use its own direction. Check names, numbers, punctuation, tables, and lists when mixing scripts.

Changing Document Direction

To set the direction in source, add this block at the top of the Markdown file. If the file already has frontmatter, add the dir field there.

---
dir: rtl
---

Valid values are auto, ltr, and rtl. Frontmatter and Metadata describes every supported document field.

DirectionUse It WhenExample Content
autoA document mixes languages or individual blocks begin in different scripts“Meeting notes” followed by “ملاحظات الاجتماع”
ltrThe document is mainly English or another left-to-right languageEnglish prose with occasional Arabic terms
rtlThe document is mainly Arabic, Urdu, or Persianنص عربي يتضمن بعض English terms

Choosing Auto in the interface removes the dir field. The editor, Preview, presentation, and exports use the document direction. Rendered code and equations use left-to-right layout by default.

Text Alignment and Reading Direction

The Text Alignment toolbar menu positions a paragraph or selected blocks on the Left, in the Center, or on the Right. These are physical alignment choices; they do not change character order or the document's dir setting. Use Document Direction in Edit Metadata for reading direction and Text Alignment for positioning. The Markdown Guide includes alignment examples and removal instructions.

Bilingual Typography

The interface and rendered document use Inter Variable, including real variable italics. Arabic text uses Noto Sans Arabic UI. Arabic paths and code use the same Arabic font while Latin text retains the selected monospace font. Standalone exports include the fonts they use. Other scripts can fall back to the operating system's fonts. Browser bidirectional layout handles Arabic, Urdu, and Persian direction.

Arabic-script spans select the document font without guessing the language. Authored language attributes remain intact. Direction remains a browser layout feature, so mixed punctuation and code may still benefit from an explicit dir setting.

Exported HTML Theme

In Settings, under Theme, Exported HTML Theme controls downloaded HTML documents and their rendered diagrams. Choose Light, the default, Dark, or Match MDash. Match MDash captures the application's current light or dark appearance when exporting, including the resolved System appearance. The downloaded file keeps that theme independently of the recipient's device.

This preference does not change MDash's application theme, the light PDF print presentation, or slide themes. HTML and PDF exports include the required document and code fonts when available. See Import, Export, and Backup for font embedding and linked image behavior.

Slide Themes

In Settings, under Theme, Default Slide Theme offers Match MDash, Light, Dark, and Vintage. Light is the initial preference. Match MDash follows the application's resolved Light or Dark appearance, including System changes. Vintage uses a subtle ivory-to-parchment gradient with dark text, brown headings, and warm surfaces, retaining the existing document fonts.

Presentation Mode and document metadata offer Default, Light, Dark, and Vintage. Default uses the Settings preference; its icon reflects the resolved theme. Explicit document choices override Settings. A choice made while presenting is temporary and does not edit the file or Settings. In the workspace, it is remembered while that document's tab stays open and clears on tab close, reload, or an authored theme change.

Slide themes apply to rendered content and presentation PDF exports. They are independent of Exported HTML Theme and regular document PDF exports. Changing MDash's appearance affects slides only when they inherit Match MDash.

Troubleshooting

  • If punctuation or code makes automatic direction unclear, choose the direction that matches the main text.
  • Review tables and mixed-script list markers in both Preview and Presentation Mode.
  • Chinese, Japanese, and Korean text uses the available font stack without added language wrappers. These scripts are not right-to-left.