Markdown Preview Lite
Dark Mode Preview Light Mode Preview
A lightweight Markdown preview extension for VS Code. Open an inline or side-by-side preview with live rendering, table of contents, scroll sync, multiple themes, math formulas, code highlighting, and one-click HTML export.
Quick Start
- Open any
.md file
- Click the preview icon in the editor title bar, or run
Preview with Markdown Preview Lite from the Command Palette
- Switch themes and styles from the floating menu in the preview panel
Features
Multiple Preview Styles
Choose a look that fits your workflow:
| Style |
Description |
| Default |
Follows your VS Code color theme |
| GitHub |
Matches GitHub's Markdown rendering |
| Notion |
Clean, spacious editorial style |
| Tokyo Night |
Low-contrast dark inspired by the editor theme |
| Obsidian |
Inspired by the Obsidian app aesthetic |
| Paper |
Ink on cream paper, print-ready |
| Typora |
Typora-inspired Whitey / Night themes |
Each style supports System / Light / Dark mode. System follows your VS Code theme and resolves to the preview's light or dark palette.
Table of Contents & Scroll Sync
- TOC sidebar with automatic heading extraction
- Current section highlight as you scroll
- Click a heading to jump to the editor
- Scroll sync between editor and preview
Rich Content Support
- Code highlighting with copy-to-clipboard buttons
- Math formulas via KaTeX (
$...$ inline, $$...$$ block)
- Mermaid diagrams rendered on the fly
One-Click Export
Export your Markdown to a shareable HTML file with preview styles and local images bundled. KaTeX and Mermaid assets may still load from CDN.
Settings
Search for Markdown Preview Lite in VS Code Settings.
For compatibility with earlier releases, the setting IDs still use the historical markdown-lint.* namespace:
| Setting |
Default |
Options |
markdown-lint.themeMode |
system |
system · light · dark |
markdown-lint.previewMode |
beside |
beside · inline |
markdown-lint.previewStyle |
default |
default · github · notion · tokyo-night · obsidian · paper · typora |
markdown-lint.showToc |
true |
true · false |
Available Commands
Markdown Preview Lite: Preview with Markdown Preview Lite (markdown-lint.openPreview) — Open the preview using the configured default placement
Markdown Preview Lite: Open Preview Inline (markdown-lint.openPreviewInline) — Open the preview in the current editor group
Markdown Preview Lite: Open Preview to the Side (markdown-lint.openPreviewToSide) — Open the preview beside the Markdown editor
Markdown Preview Lite: Format Document (markdown-lint.formatDocument) — Clean up Markdown structure
Markdown Preview Lite: Refresh TOC (markdown-lint.refreshToc) — Re-extract headings
Markdown Preview Lite: Export HTML (markdown-lint.exportHtml) — Save as standalone HTML
Changelog
See CHANGELOG.md.
License
MIT License