| title | Markdown Preview Pro |
| subtitle | Clean, minimal markdown preview for VS Code with syntax highlighting, Mermaid, KaTeX, export, and interactive features |
| publisher | luongnv89 |
| license | MIT |
| repository | https://github.com/luongnv89/vscode-markdown-preview |
| marketplace | https://marketplace.visualstudio.com/items?itemName=luongnv89.markdown-preview-pro |
| docs | https://github.com/luongnv89/vscode-markdown-preview/blob/main/docs/USER_GUIDE.md |
| version | 0.9.0 |
| highlights | Syntax highlighting Mermaid diagrams KaTeX math Interactive task lists HTML/PDF export Scroll sync |
A clean, minimal markdown preview for Visual Studio Code — built for developers who spend real time in their editor and care about how code blocks, diagrams, math, tables, and long technical docs actually render.
Note: This page is the exact output of generating a single Markdown file into a single standalone HTML file using this extension’s own rendering/export pipeline.
Install from Marketplace · View on GitHub · Read the User Guide
If your main question is “what does this look like inside a developer workflow?”, this is the part that matters first:
That is why the rendering showcase comes before installation.
This section intentionally demonstrates the different markdown elements and rich content types the extension renders.
interface PreviewConfig {
scrollSync: boolean;
enableMermaid: boolean;
enableKatex: boolean;
enableCheckboxes: boolean;
}
const config: PreviewConfig = {
scrollSync: true,
enableMermaid: true,
enableKatex: true,
enableCheckboxes: true,
};
console.log('Preview ready', config);
def render_markdown(name: str, features: list[str]) -> str:
joined = ", ".join(features)
return f"{name} supports: {joined}"
print(render_markdown("Markdown Preview Pro", ["Mermaid", "KaTeX", "HTML export"]))
{
"name": "markdown-preview-pro",
"publisher": "luongnv89",
"features": ["preview", "mermaid", "math", "export"]
}
graph TD
A[Markdown source] --> B[Markdown engine]
B --> C[Preview HTML]
C --> D[Live webview]
D --> E[Export to HTML/PDF]
Inline math looks like this: E = mc^2
Block math:
This is regular text with bold, italic, bold italic, strikethrough, and inline code.
You can also render links like GitHub and mix inline formatting with normal prose.
Good preview tooling should disappear into the background and let the content do the work.
Nested note: this renderer also handles nested blockquote structure.
Yep, including this part.
| Element | Why it matters |
|---|---|
| Headings | Clear hierarchy |
| Code blocks | Technical readability |
| Tables | Compact structure |
| Quotes | Visual separation |
| Lists | Scannability |
Press Ctrl+Shift+V to open preview to the side.
This content is inside a native HTML disclosure block, rendered as part of the markdown preview.
VS Code already has a markdown preview, but developers often want something sharper:
Markdown Preview Pro is built around that idea.
| Feature | What it does |
|---|---|
| Syntax highlighting | Renders fenced code blocks with highlighted syntax and readable styling |
| Mermaid diagrams | Supports flowcharts, sequence diagrams, and other Mermaid blocks |
| KaTeX math | Renders inline and block math formulas |
| Interactive task lists | Lets task lists behave like real checkboxes inside preview |
| Export to HTML | Generates a standalone HTML document |
| Export to PDF | Exports using Chrome / Chromium |
| Frontmatter card | Parses YAML frontmatter into a styled metadata card |
| Image support | Handles local images and common markdown image flows |
| Command | Description |
|---|---|
Markdown Preview Pro: Open Preview |
Open preview in the current pane |
Markdown Preview Pro: Open Preview to Side |
Open preview beside the editor |
Markdown Preview Pro: Export to HTML |
Export a standalone HTML file |
Markdown Preview Pro: Export to PDF |
Export to PDF |
| Setting | Default | Description |
|---|---|---|
markdownPreviewPro.scrollSync |
true |
Bidirectional scroll synchronization |
markdownPreviewPro.enableMermaid |
true |
Enable Mermaid rendering |
markdownPreviewPro.enableKatex |
true |
Enable math rendering |
markdownPreviewPro.enableCheckboxes |
true |
Enable interactive checkboxes |
markdownPreviewPro.typographer |
true |
Enable smart typography |
markdownPreviewPro.lineBreaks |
false |
Convert new lines to <br> |
markdownPreviewPro.showFrontmatter |
card |
Show YAML frontmatter as a styled card |
Search for Markdown Preview Pro in the Extensions view and click Install.
code --install-extension luongnv89.markdown-preview-pro
>= 1.85.0If you want a markdown preview that feels more polished without turning into a kitchen-sink monster, this extension is built for exactly that.