A cross-platform Electron-based markdown viewer for macOS, Windows, and Linux.
- Clean, distraction-free markdown viewing
- Edit documents next to a live preview and save with the Save button or Cmd/Ctrl+S (Cmd/Ctrl+E toggles edit mode, see docs/editing.md)
- View the raw markdown source of a document in-app, toggled per tab (Cmd/Ctrl+Shift+S)
- Copy the raw markdown source to the clipboard (Cmd/Ctrl+Shift+C)
- Export the open document as PDF (Cmd/Ctrl+P, see docs/exporting.md)
- In-document search (Cmd/Ctrl+F)
- Mermaid diagram support (ERD, flowcharts, sequence diagrams, etc.)
- Syntax highlighting for code blocks
- GitHub Flavored Markdown support
- File browser with folder navigation
- Document outline navigation
- Recent documents list
- Live file watching (auto-reload on changes)
- Dark/light mode toggle
- Adjustable font size
- A4/full-width view modes
- File association with .md files
- Cross-platform support (macOS, Windows, Linux)
Download the latest release from the Releases page.
- Clone this repository
- Install dependencies:
npm install
- Run the app:
npm start
Build for all platforms:
npm run buildBuild for specific platforms:
npm run build:mac # macOS
npm run build:win # Windows
npm run build:linux # LinuxThe Snap package is described by snap/snapcraft.yaml and built by the Snapcraft workflow on every release tag (and on pull requests that touch it); build it locally with snapcraft pack. It takes its version from package.json.
Install a macOS build into /Applications with make build install. The install step quits a running Markdown Viewer and removes the previously installed app before copying the new one, so the new build replaces the old one rather than being copied inside its bundle.
- Click "Open File" button in the app
- Drag and drop a .md file onto the app window
- Double-click a .md file (after setting file associations)
- Right-click a .md file and choose "Open with Markdown Viewer"
| Shortcut | Action |
|---|---|
Cmd/Ctrl + F |
Search in document |
Cmd/Ctrl + E |
Toggle edit mode |
Cmd/Ctrl + P |
Export as PDF |
Cmd/Ctrl + S |
Save the document (edit mode) |
Cmd/Ctrl + Shift + S |
Toggle markdown source view |
Cmd/Ctrl + Shift + C |
Copy markdown source |
Cmd/Ctrl + O |
Open file |
Cmd/Ctrl + Shift + O |
Open folder |
Cmd/Ctrl + B |
Toggle sidebar |
Cmd/Ctrl + R |
Reload current file |
Enter |
Next search result |
Shift + Enter |
Previous search result |
Escape |
Close search |
Mermaid diagrams are rendered automatically. Use fenced code blocks with the mermaid language identifier:
```mermaid
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
```Supported diagram types include flowcharts, sequence diagrams, ERD, class diagrams, state diagrams, and more.
- Right-click any .md file
- Select "Get Info"
- Under "Open with:", select "Markdown Viewer"
- Click "Change All..." to set for all .md files
- Right-click any .md file
- Select "Open with" > "Choose another app"
- Select "Markdown Viewer"
- Check "Always use this app to open .md files"
- Right-click any .md file
- Select "Properties" or "Open With"
- Choose "Markdown Viewer" as the default application
npm test # Run tests without showing app windows
npm run test:headed # Run tests with visible app windowsnpm run lint # Check for issues
npm run lint:fix # Auto-fix issues- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes
- Push to the branch
- Open a Pull Request
Please ensure tests pass and linting is clean before submitting.
If you find this project useful, consider supporting its development:
MIT
