A lightweight, fast, and beautiful Markdown viewer for macOS. View your .md files with GitHub-style rendering without leaving your desktop.
- 🚀 Lightweight - Only ~1MB app size
- ⚡ Fast - Native Swift + WebKit rendering
- 🎨 GitHub-style Markdown - Beautiful rendering with proper formatting
- 🌓 Auto Dark Mode - Automatically adapts to your system theme
- ✏️ Edit Mode - Edit markdown source code with live preview
- 💾 Save Changes - Save your edits directly from the app
- 🔄 Live Reload - Refresh button to update file changes
- ⌨️ Keyboard Shortcuts - Quick file opening with ⌘O, save with ⌘S
- 📝 Full Markdown Support - Headers, lists, tables, code blocks, links, and more
- 🎨 5 Preview Themes - System, GitHub Light/Dark, Light, Dark
- 📄 Export to PDF - Export your markdown as PDF with styling
- 🖼️ Export to PNG - Export as high-quality PNG image with full styling
- 🎯 File Association - Set as default app for
.mdfiles
Coming soon
- ✅ Headers (H1-H6)
- ✅ Bold, italic, strikethrough
- ✅ Inline code and code blocks
- ✅ Unordered and ordered lists
- ✅ Links
- ✅ Blockquotes
- ✅ Horizontal rules
- ✅ Tables with borders
- ✅ Proper paragraph spacing
- Go to Releases
- Download the latest
MarkdownViewer-v1.0.0-macOS.dmg - Open the DMG file
- Drag
MarkdownViewer.appto theApplicationsfolder - Eject the DMG
- Open MarkdownViewer from your Applications folder
- Right-click the app and select "Open" (first time only, due to macOS Gatekeeper)
Requirements:
- macOS 13.0 or later
- Xcode 15.0 or later
git clone https://github.com/fiqihbadrian/Markdown-Viewer.git
cd Markdown-Viewer
xcodebuild -project MarkdownViewer.xcodeproj -scheme MarkdownViewer -configuration Release clean buildThe built app will be in ~/Library/Developer/Xcode/DerivedData/MarkdownViewer-*/Build/Products/Release/MarkdownViewer.app
Method 1: Double-click (after setting as default app)
- Simply double-click any
.mdfile
Method 2: Drag & Drop
- Drag a
.mdfile onto the app icon
Method 3: Right-click
- Right-click a
.mdfile → Open With → MarkdownViewer
Method 4: From within the app
- Open MarkdownViewer
- Press
⌘Oor use File → Open - Select your markdown file
Preview Mode (Default)
- Files open in preview mode by default
- Beautiful GitHub-style rendering
- Click "Edit" button to switch to edit mode
Edit Mode
- Click the "Edit" button in the toolbar
- Edit markdown source code with monospace font
- Press
⌘Sor click "Save" to save changes - Click "Preview" to see rendered output
- Changes are saved to the original file
Option 1: Via App Menu
- Open MarkdownViewer
- Go to menu: MarkdownViewer → Set as Default App for .md Files
- Click "Show .md File in Finder"
- Right-click the highlighted file → Get Info (⌘I)
- Under "Open with:", select MarkdownViewer
- Click "Change All..."
Option 2: Via Finder
- Right-click any
.mdfile - Select "Get Info" (or press ⌘I)
- Under "Open with:", choose MarkdownViewer
- Click "Change All..." to apply to all
.mdfiles - Confirm the change
Option 3: Via Info Button in App
- Open MarkdownViewer (without a file)
- Click the "How?" button in the top banner
- Follow the step-by-step instructions in the popup
Choose from 5 beautiful themes:
- System Default - Adapts to your macOS appearance (light/dark)
- GitHub Light - Classic GitHub light theme
- GitHub Dark - GitHub's dark theme
- Light - Clean light theme with high contrast
- Dark - Modern dark theme
Change theme using the paintbrush icon in the toolbar.
Export to PDF
- Click the "PDF" button in the toolbar
- Exports with basic styling
- Perfect for printing and sharing
- Small file size
- Text remains selectable
Export to PNG ✨ NEW
- Click the "PNG" button in the toolbar
- Full styling support:
- ✅ Table borders and styling
- ✅ Code block backgrounds
- ✅ Horizontal rules
- ✅ All theme colors
- ✅ Proper margins and padding
- High-quality image (1200px width)
- Perfect for web sharing and presentations
- Auto-adjusts height to content
⌘O- Open file⌘S- Save file (in edit mode)⌘R- Reload current file (refresh)⌘W- Close window⌘Q- Quit app
- Platform: macOS 13.0+
- Language: Swift 6.1.2
- UI Framework: SwiftUI
- Rendering: WebKit
- Size: ~1MB
- Memory Usage: ~50MB when running
- macOS 13.0 (Ventura) or later
- Apple Silicon (M1/M2/M3) or Intel processor
- ~2MB disk space
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Nested lists are not fully supported yet
- Images in markdown are not displayed
- PDF export has limited CSS support (use PNG for full styling)
- Add support for tables
- Add export to PDF
- Add export to PNG
- Add multiple themes (5 themes)
- Add support for images
- Add support for nested lists
- Add export to HTML
- Add custom themes (user-defined)
- Add syntax highlighting for code blocks
- Add configurable PNG export (width, DPI)
- Add batch export multiple files
If you encounter any issues or have questions:
- Open an Issue
- Check existing issues for solutions
- Built with Swift and SwiftUI
- Inspired by GitHub's markdown rendering
- Icon design by [Your Name/Credit]
Made with ❤️ by Fiqih Badrian
⭐ Star this repo if you find it useful!