Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>MD Pretty ViewNew to Visual Studio Code? Get it now.
MD Pretty View

MD Pretty View

Masoud Pourhasan

|
1 install
| (1) | Free
A clean, polished look for Markdown Preview Enhanced: one-lever light/dark theme, a consistent editor-style syntax palette, styled Mermaid diagrams, and Mermaid pan/zoom & fit-to-screen. Installs the styling into your Markdown Preview Enhanced config folder.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MD Pretty View

A clean, polished look for Markdown Preview Enhanced (MPE), with two features it doesn't ship on its own:

Mermaid pan / zoom & fit-to-screen

Drag to pan, Ctrl/⌘+scroll (or the +/− buttons) to zoom, double-click to reset, and a ⛶ fit-to-screen button that fills the viewport with the whole diagram crisply (Esc to exit). Works in the live preview and in HTML export.

One-lever light / dark

A single switch flips the whole page and the code surface together, independent of your VS Code editor theme, with a consistent syntax palette that stays readable in both modes.

Example page

A single page that exercises every capability of the extension in one place.

Consistent syntax palette

The same editor-style palette is applied to every language, in both the live preview and exported HTML, regardless of your VS Code theme.

Codes

C#, TypeScript, Python, Bash — light theme C#, TypeScript, Python, Bash — dark theme

JSON, SQL — light theme JSON, SQL — dark theme

Mermaid pan / zoom & fit-to-screen

Hover a diagram and use the controls: drag to pan, ⌘/Ctrl + scroll (or the +/− buttons) to zoom, double-click to reset, and ⛶ to fit the whole diagram to the viewport (Esc to exit).

Diagrams

Mermaid diagrams — light theme Mermaid diagrams — dark theme

Math (KaTeX)

Inline and block math render cleanly in both themes via KaTeX.

Equations

KaTeX math — light theme KaTeX math — dark theme

Horizontal rule & footnote

Above each numbered section is a horizontal rule (---). Footnotes work as well.[^1]

[^1]: Footnote text — check that it renders legibly in both light and dark modes.

Usage

Open any .md file, then open the Markdown Preview Enhanced preview:

Action macOS Windows / Linux
Open preview ⌘ ⇧ V Ctrl ⇧ V
Open preview to the side ⌘ K then V Ctrl K then V

Run these from the Command Palette (⌘ ⇧ P / Ctrl ⇧ P):

Command What it does
MD Pretty View: Apply Theme (Global) Installs the styling and sets the recommended MPE settings.
MD Pretty View: Toggle Light / Dark Flips the light/dark lever.
MD Pretty View: Remove Theme (Global) Removes the installed files (backups kept).

On first run the extension offers to apply the theme automatically. After applying, reload the window.

Requirements

  • Markdown Preview Enhanced (shd101wyy.markdown-preview-enhanced) — installed automatically as an extension dependency.

Note on script execution

The Mermaid pan/zoom feature runs a small script in the MPE preview, so applying the theme enables markdown-preview-enhanced.enableScriptExecution. If you prefer not to run preview scripts, disable that setting (pan/zoom will stop working; all other styling remains).

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft