Markdown Live Editor

April 16, 2026 · View on GitHub

VS Marketplace Installs License: MIT

A WYSIWYG Markdown editor for Visual Studio Code and VS Code for the Web. Edit your Markdown files visually — what you see is what you get.

Markdown Live Editor Demo

Installation

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.

ext install jishii1204.markdown-live-editor

Features

  • WYSIWYG editing — Edit Markdown visually with Milkdown (ProseMirror-based)
  • Bidirectional sync — Changes in the visual editor update the source file, and vice versa
  • GFM support — Tables, task lists, strikethrough, footnotes
  • Selection toolbar — Select text to show Bold, Italic, Strikethrough, Code, and Link buttons
  • Link tooltip — Hover over links to preview URL with edit/delete actions
  • In-editor Find — Search inside the webview editor with match highlights and keyboard navigation
  • Heading folding — Collapse and expand sections by heading in the editor
  • Outline panel — Heading hierarchy in the Explorer sidebar with click-to-scroll navigation
  • Syntax highlighting — Code blocks with language-aware highlighting via highlight.js
  • Mermaid diagrams — Live preview of mermaid code blocks
  • KaTeX math — Inline $...$ and block $$...$$ math rendering
  • GitHub Alerts[!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]
  • Slash commands — Type / to insert headings, lists, tables, code blocks, math, mermaid diagrams, and more
  • Emoji shortcodes:smile: → 😄, :rocket: → 🚀
  • Relative image paths — Display local images referenced with relative paths
  • Custom CSS — Inject your own styles via settings
  • Visual line numbers (optional) — Show logical line numbers per rendered block in a left gutter
  • Theme integration — Adapts to light, dark, and high-contrast themes

Usage

Opening the Editor

MethodHow
Command PaletteCtrl+Shift+PMarkdown Live Editor: Open with Markdown Live Editor
Keyboard shortcutCtrl+Shift+Alt+M (Mac: Cmd+Shift+Alt+M) while editing a .md file
Explorer context menuRight-click a .md file → Open with Markdown Live Editor
Editor tab context menuRight-click the tab of an open .md file

Settings

SettingDescriptionDefault
markdownLiveEditor.customCssCustom CSS to inject into the editor""
markdownLiveEditor.visualLineNumbersShow logical line numbers per rendered block in a left gutter (ignores spacing margins; paragraph soft wraps are not counted separately, while hard breaks are counted)false
markdownLiveEditor.syncDebugLogsEnable sync debug logs and allow copying recent host/webview sync events for troubleshootingfalse

Export Styled HTML

You can export the current editor view as styled HTML in two ways:

  • Command Palette: Markdown Live Editor: Export Styled HTML
  • In-editor Find panel: click the export toggle (), then choose Copy or Export

Heading Folding

  • Click the fold toggle next to a heading to collapse or expand its section
  • Keyboard support: focus the toggle with Tab, then press Enter or Space

In-editor Find Shortcuts

Because the editor runs inside a webview, it uses its own Find panel.

ActionShortcut
Open FindCtrl+F (Mac: Cmd+F)
Next matchEnter, F3, Ctrl+G (Mac: Cmd+G)
Previous matchShift+Enter, Shift+F3, Shift+Ctrl+G (Mac: Shift+Cmd+G)
Close FindEsc

Troubleshooting Sync/IME Issues

If you see cursor jumps or unexpected sync behavior:

  1. Enable markdownLiveEditor.syncDebugLogs
  2. Reproduce once in the editor
  3. Run Markdown Live Editor: Copy Sync Debug Info
  4. Paste the copied output into your issue report with VS Code version, OS, files.autoSave, and reproduction steps

Supported Markdown Features

FeatureSyntax
Headings# H1 ... ###### H6
Bold / Italic**bold** / *italic*
Strikethrough~~text~~
Links[text](url)
Images![alt](url)
Code blocks```language
TablesGFM pipe tables
Task lists- [x] done / - [ ] todo
Blockquotes> quote
Footnotestext[^1] / [^1]: note
Math (inline)$E=mc^2$
Math (block)$$\sum_{i=1}^n i$$
Mermaid```mermaid
GitHub Alerts> [!NOTE], > [!WARNING], etc.
Emoji:smile:, :rocket:, etc.

Contributing

See CONTRIBUTING.md for development setup and build instructions.

Support

If Markdown Live Editor helps your workflow, you can support ongoing maintenance and improvements:

Support is optional and does not affect feature availability.

License

MIT