Skip to content

feat: markdown preview mode in the Mac editor#322

Merged
fjbarrett merged 2 commits into
mainfrom
feat/mac-markdown-preview
Jul 10, 2026
Merged

feat: markdown preview mode in the Mac editor#322
fjbarrett merged 2 commits into
mainfrom
feat/mac-markdown-preview

Conversation

@fjbarrett

Copy link
Copy Markdown
Owner

Summary

  • Toolbar toggle on the Mac detail pane flips the note's markdown flag (clearing highlight, matching the web's mutually-exclusive toggles)
  • New MacMarkdownView renders the body natively from Foundation's markdown presentation intents: headings, ordered/unordered lists, blockquotes, code fences, thematic breaks, inline styling
  • Preview is read-only; toggling back returns to the plain autosaving editor
  • Known gap vs web: GFM tables/task-list checkboxes don't render (Foundation's parser doesn't support them)
  • Screenshot: ios/screenshots/keepmac-markdown-preview-20260709-204555.png

Test plan

  • xcodebuild -scheme KeepMac builds
  • Snapshot harness: markdown note renders headings/lists/quote/code fence (see screenshot)
  • Manual: toggle a note to markdown on Mac, confirm the web opens it in preview too

🤖 Generated with Claude Code

fjbarrett and others added 2 commits July 9, 2026 20:45
The web app renders a note as markdown when its markdown flag is set;
the Mac app showed raw text regardless. A toolbar toggle now flips the
same per-note flag (clearing highlight, as the web does) and renders the
body natively — headings, lists, quotes, and code fences laid out from
Foundation's markdown presentation intents, since Text alone only styles
inline runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fjbarrett
fjbarrett merged commit c7ee0bf into main Jul 10, 2026
3 checks passed
@fjbarrett
fjbarrett deleted the feat/mac-markdown-preview branch July 10, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant