Writing

I built a Markdown viewer and it came down to select and copy

I built a Markdown viewer and it came down to select and copy

A Markdown viewer has almost no features to hide behind. It shows a file and you read it. So the whole product is whether select, copy and scroll feel right. I spent two days building features, and now the real work is starting.

Agents leave .md files in every repo: HANDOFF, PLAN, DECISION. On a Mac, double-clicking one opens VS Code with the ### signs showing. I want a clean reader, a nice editor, and something that feels native on the latest macOS. My one-line pitch is “Preview.app for Markdown”.

The bar is Apple-shipped

I want it very clean and minimalistic, with smooth touches and attention to detail. No overengineering, no extra features, only what’s needed. Before building anything I had the agents look at what already existed and which of its features were any good. The bar I set:

we need obsessively detailed apple shipped very clean app, the bar is visual quality and snappinnes

Two days of features

The first commit landed right after I described the idea. 49 commits in two days, 41 of them on July 5. Live reload when a file changes, a source edit mode, an outline, Cmd-F find, a Quick Look extension, VoiceOver support for headings and image alt text. There’s also an experimental TextKit 2 reading surface behind a Debug switch.

The outline is the one feature I have an opinion on. I don’t want a sidebar. I want a dropdown of clickable titles, clean and native to the Mac. Clicking a title has to feel right too. It was jumping to the section instead of scrolling there, and I want the same smoothness when the window gets resized.

The man turns a hand crank that scrolls a long roll of paper between two wooden rollers

A feature list doesn’t show the bugs

Using the app gave me a different list. The window opened at a weird low height and big width. The glass titles were squeezed. The download button went blue when I clicked it and did nothing, and the navigation animation was off.

Edit mode wouldn’t scroll, while the same file scrolled fine in Preview. Code blocks should copy on click, like in a chat app, and the cursor acted strange while I selected text. Twice today the first question was whether the installed app was the new build or an old one still running.

Links had no pointer and no hover. Checkboxes in task lists did nothing. Blockquotes were badly designed. I also want a visual editor, not only source mode.

Copy had no response

Copying a code block gave nothing in the field itself, only a copied label somewhere else. I want the confirmation inside the block. Worse, clicking one line made another field grow:

look it changes its height after i click, thats what i was meaning about polish, stuff like that

The copy control got rebuilt as a custom one and was still ugly this afternoon.

Select-all doesn’t work

Selection is the problem that won’t go away. I can select inside one paragraph but not across sections, and Cmd-A only picks up one block. A fix made it better, and Cmd-A still selects one section.