Markdown previews are usually cluttered, browser-based, or tied to editors.
MDviewer is a tiny native macOS app that opens any Markdown file as a clean, print-ready document.
Most Markdown previews are inside editors or browsers.
MDviewer is different:
- Double-click a Markdown file and read it immediately
- Clean typography optimized for printing
- No Electron, no runtime dependencies
- Fully local and secure
- Native macOS — Cocoa + WKWebView, launches instantly, under 1 MB
- Print-ready typography — serif body, clean headings, proper spacing
- PDF export —
Cmd+Shift+Eto save,Cmd+Pto print - Live reload — re-renders automatically when the file changes on disk
- GitHub Flavored Markdown — tables, task lists, fenced code blocks
- Dark mode — follows your macOS appearance setting
- Secure — HTML sanitized with DOMPurify, strict Content Security Policy
- Finder integration — registers as default
.mdhandler; double-click to open - Tabbed windows — multiple documents in one window
- Local-first — no network calls, no telemetry, no accounts
- Grab
MDviewer.app.zipfrom Releases - Unzip, drag to
/Applications - On first launch, macOS will block the app because it's unsigned. To open it:
- Right-click (or Control-click) the app → click Open → click Open again in the dialog
- Or run in Terminal:
xattr -cr /Applications/Markdown\ Viewer.app
- After the first open, it launches normally like any other app
git clone https://github.com/JackYoung27/mdviewer.git
cd mdviewer
./build.sh # builds to dist/Markdown Viewer.app
./install.sh # optional: copies to /Applications and sets as default handlerRequires Xcode Command Line Tools (xcode-select --install).
| Action | Shortcut |
|---|---|
| Open file | Cmd+O |
| Reload | Cmd+R |
Cmd+P |
|
| Export PDF | Cmd+Shift+E |
| Close window | Cmd+W |
| Document view | Code blocks | Checklists |
|---|---|---|
![]() |
![]() |
![]() |



