Markdown app for iPhone: plain files, iCloud sync and reading

Managing notes6 min read

A dependable Markdown app for iPhone reads and writes ordinary .md files inside a folder the iOS Files app can inspect, rather than locking notes inside a private database. MiaoYan on iPhone opens the same iCloud Drive folder your Mac uses, presents every note in a book-typeset reading view first, and drops your cursor onto the exact source line when you double-tap a paragraph to edit. You give up desktop plugin systems in exchange for fast cold launches, proactive offline file downloads, and a single universal purchase across iPhone, iPad, and Mac.

Why plain Markdown files behave differently on iOS

On a Mac, any editor can read ~/Documents/Notes directly. On iOS, every app runs in a sandbox and reaches shared Markdown files either through its public iCloud ubiquity container (iCloud Drive > MiaoYan in the Files app) or through a security-scoped folder bookmark (Settings > Library > Choose Folder). That sandbox boundary explains why some desktop Markdown apps stall or lose attachments on a phone, and why local-first Markdown notes need mobile-specific file handling.

The common culprit is iCloud Drive eviction. iCloud syncs directory metadata before file bytes, writing tiny hidden .Note.md.icloud placeholder files on disk and evicting older files when storage runs tight. When a mobile editor walks the folder naively, unmaterialized .icloud files vanish from search, block the UI while fetching over cellular, or leave ![](/i/diagram.png) images broken offline.

MiaoYan queries iCloud's metadata catalog (NSMetadataQuery) directly. On cold launch it indexes the cloud catalog immediately (Found N notes…), then triggers background startDownloadingUbiquitousItem requests across your .md, .markdown, and .txt files as well as .icloud attachment placeholders inside folders like i/ (skipping Trash and .miaoyan-conflicts). Whenever your Mac saves a change, the iPhone app watches catalog updates and pulls the newer version down automatically so notes and images stay available offline.

Reading first, then editing at the exact line

Most mobile note sessions involve reading a checklist, checking a command, or adding two lines, where opening straight into raw Markdown source invites accidental edits. MiaoYan opens notes in a dedicated reader first and switches cleanly when you edit:

  • Choose from five typefaces (Sans Serif, Serif, Kaiti, Tsanger JinKai, and Rounded, pairing Charter with CJK serifs) and six Dynamic Type sizes (Small to Largest). Bundled KaTeX typesets math offline, Mermaid draws diagrams, code highlights via highlight.js, and ==highlight==, inline footnotes, and [[Title]] or [[Title#Heading]] wikilinks work in place.
  • Tick - [ ] checkboxes right in the reader without opening the keyboard. To edit text, tap the top-right Edit pencil or double-tap any prose block to open the Markdown editor at that exact source line; tapping Done returns the reader to the same position.
  • Inside the editor, Markdown tables align in monospace columns and lists keep hanging indents. Typing [[ shows matching note titles above the keyboard, and formatting buttons commit active Pinyin or Kana composition before inserting marks. Above the keyboard sits a thumb row (Todo, Bulleted List, Link, attachments, Undo, Redo) that opens a four-row non-scrolling format grid displaying literal marks (#, ##, ###, >, ---, | |, **, *, ~~, `) plus Shift Left and Shift Right.

Quick capture, Handoff, and sharing from your phone

On iPhone you can place a New Note control on the Lock Screen or in Control Center, add Recent Notes widgets to the Home or Lock Screen, or run Siri and Shortcuts actions (Create Note, Append to Note, Open Note, Search Notes) using container-independent relative paths. Local search matches titles and bodies and supports #tag and todo: filters.

Between devices, Apple Handoff carries your open note and current body line across Mac, iPhone, and iPad; tablet Split View (⌘\) and hardware shortcuts are covered in Markdown on iPad. To send a formatted note outside Markdown, the reader menu offers Export as PDF, Copy HTML (placing clean HTML and plain Markdown on the clipboard), and Share as Image. Running Share as Image on a full note or selected passage renders either one Long Image or paged 3:4 Cards, with paper swatches, font picks, and switches for Title and the bottom Signature.

Handling sync conflicts without losing words

Editing plain files across devices eventually causes a race if you type on a plane before a Mac edit syncs. Folder setup rules are in Sync Markdown notes across devices, and on iPhone MiaoYan protects unsaved edits in three steps:

  1. If the file on disk changes underneath unsaved local typing, autosave pauses and shows Updated elsewhere instead of overwriting either version.
  2. Tapping that pill opens Compare Changes, highlighting added and rewritten lines between Mine and Newer Version.
  3. You pick Keep Both, Keep Mine, or Reload; if you leave without choosing, MiaoYan writes your unsaved typing into a separate conflict copy beside the note.

Comparing iPhone Markdown apps

App Storage Sync path Standout strength on iPhone Main trade-off
MiaoYan Plain .md files in Files iCloud Drive or chosen folder Reader first, double-tap line edit, Share as Image cards, universal purchase Requires iOS 18+; PlantUML and Markmap show as source text
iA Writer Plain files in Locations iCloud Drive or Files providers Focus Mode, Syntax Control parts-of-speech tinting, CMS publishing No Mermaid rendering or [[wikilink]] backlink index
Taio Plain files in iCloud / Files iCloud Drive or local folders Clipboard manager plus JavaScript and Shortcuts text workflows Freemium Pro tiers and denser utility toolbars
Obsidian Mobile Plain .md vault iCloud Drive or paid Obsidian Sync Community plugins, graph view, desktop vault parity Slower startup if iCloud evicts .obsidian plugin files
Bear SQLite database CloudKit (Bear Pro subscription) Fast single-pane styling, nested #tag tree, Apple Watch app Notes are not loose .md files in Finder or Files

Pick Bear if an Apple Watch app and sidebar tag trees outweigh loose files. Pick Obsidian Mobile if you rely on community plugins, Taio for scripted text workflows, or iA Writer for long essays pushed straight to Ghost or WordPress. MiaoYan fits when you want one plain-file library shared with your Mac, built to read like a book and edit on double tap, available on the App Store alongside the MIT Mac repo on GitHub.

FAQ

Does MiaoYan for iPhone require a subscription?

No. MiaoYan on the App Store is a one-time universal purchase covering iPhone, iPad, and Mac, with no recurring subscription or extra in-app tiers, requiring iOS 18 or later on mobile.

Can I open a Dropbox, Nutstore, or Obsidian folder in MiaoYan on iPhone?

Yes, via Settings > Library > Choose Folder. If a third-party cloud provider exposes read-only previews in the Files app by default, mark that folder available offline inside the provider's own app first, or store the library in iCloud Drive.

What happens if iOS terminates MiaoYan in the background?

When MiaoYan becomes inactive on iPhone, it flushes pending edits inside its 800ms autosave window and saves the note and exact body line you were reading, reopening at that line next time.

Why do PlantUML or Markmap blocks show as raw code on my iPhone?

The mobile reader bundles KaTeX, highlight.js, and Mermaid offline, while PlantUML and Markmap currently render only on the Mac and appear as readable fenced source on iPhone and iPad.