Choosing an open-source Markdown editor for Mac
For an open-source Markdown editor on a Mac, pick MiaoYan if you want a native Swift notebook with folders, a synced split preview, math, diagrams, and wikilinks, MarkText if you want single-pane WYSIWYG editing, Zettlr if you write academic papers with Zotero citations and Pandoc, or CotEditor and VS Code if you edit standalone files alongside code. Every option here reads ordinary .md files on disk, so you can test two of them on the same folder in an afternoon without converting anything. The main trade-off sits underneath the license badge: native AppKit apps stay light and follow macOS text conventions, while Electron editors trade higher memory use for Windows and Linux builds.
What open source and runtime architecture change on a Mac
Two technical details separate open-source Mac editors more than theme screenshots do. First is how the license applies to the binary you run. Permissive licenses such as MIT and Apache-2.0 let anyone inspect, fork, and redistribute code, while GPL-3.0 requires derivative builds to stay under GPL-3.0. Check whether the binary matches the repository: Microsoft's microsoft/vscode repository is MIT-licensed, whereas the official VS Code download uses a separate Microsoft license, and VSCodium builds pure MIT binaries from that source. MiaoYan's Mac codebase is MIT-licensed on GitHub and ships via Homebrew, while its paid App Store listing adds the iPhone and iPad apps plus automatic updates under one universal purchase.
Second is the editing stack. Native macOS editors such as MiaoYan and CotEditor are compiled Swift binaries built on AppKit's NSTextView, so macOS handles font smoothing, trackpad scrolling, CJK input methods, Services, and Cocoa text keys (⌃A, ⌃E, ⌃K) directly, while HTML previews share the system WKWebView. Electron editors such as MarkText and Zettlr bundle Chromium and Node.js inside .app/Contents/Frameworks, keeping rendering identical across macOS, Windows, and Linux at the cost of larger bundles and helper processes.
Verify architecture and runtime frameworks on any installed app from Terminal:
file /Applications/MiaoYan.app/Contents/MacOS/MiaoYan
ls /Applications/MiaoYan.app/Contents/Frameworks
A native Apple Silicon or Universal binary reports Mach-O 64-bit executable arm64, while an Electron app shows Electron Framework.framework inside Frameworks.
Comparing the active open-source options
| Editor | License | Stack | Layout | Best fit | Main caveat |
|---|---|---|---|---|---|
| MiaoYan | MIT (Mac) | Swift 6, AppKit | Three-column library, split preview | Daily notes, technical docs, slides | Apple platforms only; no WYSIWYG or plugins |
| MarkText | MIT | Electron (Muya) | Single-pane WYSIWYG + source mode | Typora-style inline visual writing | Past maintenance lull; test CJK IME on long files |
| Zettlr | GPL-3.0 | Electron | File tree, workspaces, live rendering | Academic citations with Zotero and Pandoc | Dense UI if you do not use reference managers |
| MacDown | MIT | Objective-C, AppKit | Document window, two-pane preview | Classic single-file preview | Upstream unmaintained since 2020; use a fork |
| CotEditor | Apache-2.0 (code) | Swift, AppKit | Single-document plain text | Quick edits, encodings, regex | No Markdown preview, math, or note library |
| VS Code / VSCodium | MIT (source) | Electron | Workspace tree + preview tab | Docs inside git code repositories | IDE chrome rather than a reading notebook |
MiaoYan
MiaoYan (tw93/MiaoYan, MIT, macOS 12.0+) organizes .md, .markdown, and .txt files in three columns: sidebar folders, a note list, and an AppKit source editor paired with a 60fps synced preview (⌘\). Bundled KaTeX and Mermaid render math and diagrams offline alongside Markmap and PlantUML, --- separators turn a note into Reveal.js slides (⌘4), and ==highlight==, inline footnote popovers, and clickable source task checkboxes work out of the box. Typing [[ opens a scrollable title completion menu, renaming a note rewrites incoming [[Title]] backlinks while keeping aliases and heading anchors, Note Info displays word, character, paragraph, and reading-time counts above clickable backlinks, and search filters by #tag and todo:. Pasted images save locally to i/ or upload to S3 or Cloudflare R2 with secrets kept in your Keychain, and terminal users get the miao CLI (list, search, cat, open, new). To preview MiaoYan's typography before installing, drop a file into the browser Markdown viewer. Broader comparisons with closed-source apps are in Choosing a Markdown editor for Mac and A lighter Obsidian alternative for Mac.
MarkText
MarkText (marktext/marktext, MIT) is the closest open-source option to a single-pane WYSIWYG editor, hiding syntax delimiters via its Muya engine while offering a source mode switch, KaTeX math, and Mermaid blocks. After a multi-year lull where input-method issues accumulated, original creator @Jocs resumed maintenance at marktext.me to fix bugs and stabilize releases. Test CJK input and long tables on your own files first; Typora alternatives on Mac covers the trade-off between WYSIWYG and split preview.
Zettlr
Zettlr (Zettlr/Zettlr, GPL-3.0) serves academic researchers. It connects to Zotero and JabRef libraries (BibTeX, BibLaTeX, CSL JSON), supports Zettelkasten IDs, and wraps Pandoc to compile Markdown into Word, PDF, and LaTeX manuscripts. If .bib citations drive your writing, Zettlr saves hours of scripting; otherwise most of its toolbars sit idle.
MacDown
MacDown (MacDownApp/macdown, MIT) defined the classic two-pane AppKit Markdown window on OS X, rendering single files through hoedown, MathJax, and Prism. Upstream MacDown's last release (0.7.2) shipped in late 2019 with activity stalling in 2020, leaving an Intel binary that needs Rosetta 2 and hits modern Gatekeeper and WebKit quirks. Look to community forks such as MacDown 3000 (macdown-3000 on Homebrew) instead of the dormant upstream build.
CotEditor and VS Code
CotEditor (coteditor/CotEditor, Apache-2.0 source, CC BY-NC-ND 4.0 assets) is a fast native Swift plain-text editor for encodings, line endings, and regex replacements on single files, though it omits a rendered Markdown preview, math, and folder libraries. VS Code (or VSCodium) fits when README.md and specs sit inside a git repository beside application code, offering built-in KaTeX and Mermaid previews next to your terminal.
Setting up and verifying zero lock-in
Install the open-source Mac build of MiaoYan via Homebrew:
brew install --cask miaoyan
Press ⌘, to open Settings, click Change beside Note Location in General, select your folder, and click Restart. Before committing your library to any editor, run three checks on a folder copy:
- Check line-break behavior. MiaoYan defaults
Line Breaks(Settings > Editor) toEvery Newline; switch it toGitHub Styleif your files expect CommonMark soft breaks. - Check image paths. Standard relative paths (
./assets/chart.png) work across Zettlr, VS Code, MarkText, and MiaoYan, whereas screenshots pasted into MiaoYan default toi/asunless uploaded to S3 or R2. - Open one note containing a GFM table,
$E = mc^2$, and amermaidblock in both MiaoYan and CotEditor to confirm the file on disk stays clean UTF-8 plain text.
FAQ
How does the open-source MiaoYan Mac build differ from the App Store version?
Both run the same Mac editor code. Installing from GitHub or Homebrew (brew install --cask miaoyan) gives you the free MIT Mac app, while the one-time $12.99 USD (¥88 CNY) App Store purchase adds the iPhone and iPad apps, Handoff across all three devices, and automatic store updates with no subscription.
Why is Obsidian missing from an open-source Markdown list?
Many Obsidian community plugins are open source on GitHub, but the Obsidian desktop and mobile apps themselves are proprietary closed-source software rather than OSI-licensed open source.
Can I open the same notes folder in MiaoYan and VS Code or Zettlr?
Yes. All three read plain .md files, and MiaoYan skips hidden folders like .vscode and .git. Avoid editing the same note in two apps simultaneously; if an external edit lands on disk, MiaoYan backs up unsaved text into .miaoyan-conflicts.
What happens if an open-source editor stops being maintained?
Because notes stay ordinary .md files in Finder rather than rows in a private database, nothing needs exporting: point another Markdown editor at the folder, or build and fork the source under its license.
