A professional, native Markdown editor for macOS.
MDWriter is a modern, elegant, and powerful Markdown editor for macOS, built with SwiftUI and SwiftData. Inspired by professional writing tools like Ulysses, it provides a focused writing environment with powerful library management and export capabilities.
Built with SwiftUI and SwiftData, MDWriter offers native performance, seamless animations, and a robust database architecture.
- Typography First: Carefully tuned line heights, paragraph spacing, and margins for optimal readability (optimized for both English and Chinese/CJK).
- Theme System: Includes 8 professional themes (Pure, Solarized, GitHub, Dracula, Nord, Monokai, Night Owl) to match your environment.
- Typewriter Mode: Keeps your cursor vertically centered, allowing you to focus on the line you're writing.
- MarkX: A custom regex-based highlighting engine providing accurate, high-performance syntax highlighting without the webview overhead.
- Distraction Free: Hidden title bars and a clean UI let you focus solely on your content.
- SwiftData Integration: A modern, database-driven architecture using SQLite ensures fast search and reliable data integrity.
- Three-Column Layout: Navigate Folders, Document Lists, and the Editor in a fluid, native macOS interface.
- Drag & Drop: Intuitive organization—drag notes between folders, to the Trash, or rearrange your hierarchy.
- Smart Lists: Built-in Inbox and Trash management.
- Snapshot History: Manually save "Versions" of your document and browse them purely visually. View character counts, creation times, and restore previous states with one click.
- Full Library Backup: Export your entire database (Folders, Notes, Snapshots) to a single
.mdwbkfile. - One-Click Restore: Easily migrate your library to a new machine or recover from accidental data loss.
Important
Requirements: macOS 26.0 or later and an Apple Silicon (M-series) Mac. AI features must be enabled in System Settings.
- On-Device AI Assistant: Privacy-focused AI Assistant panel powered by Apple Foundation Models.
- Writing Tools: Polish, summarize, translate, and proofread your text with a single click.
- Smart Metadata: Automatically generate descriptive titles and relevant tags based on your content.
- Privacy First: All processing happens on-device; your data never leaves your machine.
- PDF Export: Generate clean, A4-optimized PDFs with styled headers and footers.
- Word (RTF): Export broad-compatibility Rich Text files.
- Standard Markdown: Your data is yours. Export raw
.mdfiles at any time.
- Native English Support
- Simplified Chinese (简体中文): Fully localized UI, including menus, settings, and tooltips.
Download the latest Universal Binary (supports both Apple Silicon and Intel) from the Releases page.
Install via Homebrew tap:
brew tap SteveShi/tap
brew install --cask mdwriterRequirements:
- macOS 14.0+
- Xcode 15.0+
- Clone the repository:
git clone https://github.com/SteveShi/MDWriter.git cd MDWriter - Generate the Xcode project with XcodeGen:
xcodegen generate --spec project.yml
- Open
MDWriter.xcodeprojin Xcode. - Ensure package dependencies resolve.
- Build and Run (
Cmd + R).
MDWriter leverages several powerful open-source libraries:
- SwiftUI: For a modern, native macOS user interface.
- SwiftData: For persistent storage and data management.
- swift-markdown: For high-performance Markdown parsing.
- Highlightr: For real-time code and syntax highlighting.
- Sparkle: For seamless app updates.
- WhatsNewKit: To showcase new features after updates.
- macOS 14.0 or later
- Xcode 15.0 or later
This project is licensed under the Mozilla Public License Version 2.0 - see the LICENSE file for details.