A modern markdown viewer available as a web app, desktop app (Electron), and VS Code extension — designed for local development and reading of markdown files.
Edit your markdown files in your favorite editor while MarkdownViewer automatically refreshes, giving you instant visual feedback as you write. Perfect for drafting documentation, README files, or any markdown content. Also serves as a clean, distraction-free way to read rendered markdown files.
🚀 Try the app online - No installation required!
- Preview Markdown files with GitHub Flavored Markdown support
- Auto-reload - automatically refreshes when your markdown file changes (Chrome/Edge)
- Mermaid diagrams - renders flowcharts, sequence diagrams, and more
- Syntax highlighting - beautiful code blocks with syntax coloring
- Light/dark themes - matches your system preference or toggle manually
- Desktop app - native Electron app with system file watching (macOS, Windows, Linux)
- VS Code extension - preview markdown in a panel beside your editor, updates live as you type
This is a pnpm workspace monorepo. Install pnpm first if you don't have it.
# Install dependencies
pnpm install
# Start the web app development server
pnpm run dev
# Open http://localhost:5173 in your browser
# Click "Open Markdown File" and select a .md file to preview# Build the web app only
pnpm run build
# Build all packages (core, platform-adapters, web, vscode-extension, electron)
pnpm run build:allThe web app production build will be in packages/web/dist/.
A native desktop application (mdviewer-electron) with the same features as the web app, plus native file watching via chokidar. Not yet published — build and run from source.
Requires the monorepo dependencies to be installed first (pnpm install from the repo root).
# Build the app
make electron-build
# Run the app
make electron-run
# Watch mode for development
make electron-dev
# Package into distributable (.dmg / .exe / .AppImage)
make electron-packageThe packaged app will be in packages/electron/dist-package/.
A companion VS Code extension (mdviewer-vscode) renders markdown in a panel beside your editor. It is not yet published to the VS Code Marketplace and has no formal versioning — build and install it manually from source.
- Open a
.mdfile in VS Code - Press
Cmd+Shift+M(macOS) /Ctrl+Shift+M(Windows/Linux), or click the preview icon in the editor title bar, or run MD Viewer: Preview Current File from the command palette - The panel opens beside your editor and updates automatically as you switch between
.mdfiles or make unsaved edits - Theme follows VS Code's active color theme (light/dark)
Requires the monorepo dependencies to be installed first (pnpm install from the repo root).
# Build the extension bundles
make vsce-build
# Package into a .vsix file
make vsce-package
# Install into your VS Code
make vsce-installReload VS Code after installing. To uninstall, find MD Viewer in the Extensions sidebar and click Uninstall.