MarkView

Markdown viewer for the Mac

0.4.426 Nov 2026

Download mark-view-0.4.4.dmg4.6 MB

Added

  • Release notes in the Sparkle update dialog: the cut renders the release's CHANGELOG section beside the update zip (scripts/release-page.py --extract-notes) and generate_appcast embeds it into the appcast item, so the dialog shows the same notes the release page renders. A cut fails if the entry is missing or has no sectioned bullets.

0.4.325 Nov 2026

Download mark-view-0.4.3.dmg4.6 MB

Changed

  • Public downloads and the update feed moved behind CloudFront at https://apps.kearney.co.uk — same bucket, friendlier hostname. The feed URL is baked into bundles again, so this tag ships the new URL: both previous feed locations (the legacy dedicated bucket and the shared bucket's REST path) keep serving the same appcast object, now with CloudFront enclosure URLs, so every install migrates on its next update check. publish and release-page invalidate the CloudFront objects they change and poll the public URL until the release shows.

Added

  • A public release page per app in the shared bucket: make release-page (the third leg of make release) uploads the notarized dmg to mark-view/ and pushes an index.html rendered from the shared release-page-template.html at the bucket root — one template serves every Mac app, fetched fresh at cut time, with each app filling in its own releases (scripts/release-page.py: versions from the dmg objects in the prefix, notes from CHANGELOG.md). The page lists every downloadable release with its notes, newest first; the Sparkle feed (zip + appcast) is untouched. All signed historical dmgs (0.3.0–0.4.2) were backfilled. The bucket root also carries a landing page (index.html) listing each app with a one-line overview and a link to its release page — its own HTML comment documents how another app adds itself.

0.4.225 Nov 2026

Download mark-view-0.4.2.dmg4.6 MB

Changed

  • Auto-updates moved to the shared mac-software bucket: the appcast and release zips now live under mark-view/ of mac-sw-bucket-eu1-490223745366 instead of the dedicated mark-view-sparkle bucket's root, so every Mac app can share one bucket with its own path prefix. The feed URL is baked into shipped bundles, so this release doubles as the migration cut: make publish uploads to the new location and refreshes the old bucket's appcast (its enclosures point at the new bucket) until the old bucket is retired — existing installs find the release in the feed they still poll, and the first update through it stamps the new URL into the replaced bundle.

0.4.124 Nov 2026

Download mark-view-0.4.1.dmg4.6 MB

Added

  • HCL/terraform syntax highlighting in fenced code blocks. hcl, hcl2, terraform and tf blocks are highlighted with Prism's official HCL grammar — block keywords, attribute names, heredocs and nested ${…} interpolation — inlined into the vendored highlighter because highlight.js has no HCL grammar upstream (prismjs 1.30.0, MIT, Resources/prism.LICENSE; cross-checked byte-for-byte against the npm tarball). Every other language keeps highlight.js, the Prism token colors sit on the same palette in light and dark mode, and the whole thing is verified end to end through the WebKit render harness (MARKVIEW_SNAPSHOT_HCL writes a snapshot).

0.4.018 Nov 2026

Download mark-view-0.4.0.dmg4.6 MB

Added

  • Find in document (⌘F). A find bar docks across the top of the document area — find field, previous/next chevrons, live match counter ("3 of 17", "no matches") and a close button over a hairline — and ⌘F opens it, takes focus and seeds the field from the current selection. The engine (window.markviewFind) is threaded into every rendered page, so highlights survive content swaps and reloads, and a swap re-applies the query at the current position. A search fires 250 ms after typing pauses (per-keystroke re-highlighting walks every text node, which is sluggish on big documents) or at once via Return or ⌘F; Return with an unchanged query steps to the next match, ⇧Return to the previous, as do ⌘G/⇧⌘G and the chevrons. While editing, the stale marks and counter stay on screen until the refreshed search replaces them (Firefox findbar behaviour); an emptied field clears at once. Esc closes the bar and clears the highlights, and the query survives for the next ⌘F. Nothing persists across launches. Verified with the full test suite (273 tests, the 31 find-specific ones run three times over) and in daily use.

0.3.417 Nov 2026

Download mark-view-0.3.4.dmg4.6 MB

Fixed

  • Double-clicking a markdown file (in Finder or via open) no longer opens it twice in two stacked, identical windows: LaunchServices can hand a freshly launched app the same file through two channels at once — as a command-line argument and again as the open Apple Event — and each delivery used to create its own window. makeWindow now enforces one window per document path (standardized, so /tmp/… and /private/tmp/… spellings match): re-opening a document the app already shows brings that window forward instead. Verified with the isolated-build drill: the same file delivered through both channels yields one window, a different file still opens normally, and session restore is unaffected.

0.3.317 Nov 2026

Download mark-view-0.3.3.dmg4.6 MB

Fixed

  • Restore-on-launch actually restores now. Every quit — including Sparkle's update relaunch — saved an empty session: AppKit tears down each window during termination and windowWillClose fires after applicationWillTerminate, so the window teardown unpersisted the session list the quit-time save had just written, and the next launch always came up with an empty window instead of the open documents. applicationShouldTerminate now snapshots the still-open documents into the session list before teardown, and window teardown no longer removes entries; a doubly-delivered document can also no longer persist twice. Verified end to end on an isolated build: open two documents, quit, relaunch without arguments, both re-open.

0.3.217 Nov 2026

Download mark-view-0.3.2.dmg4.6 MB

Added

  • SIGN_IDENTITY now defaults to the Developer ID identity, so plain make app and make release produce signed, notarized builds without a flag. Setting it empty (SIGN_IDENTITY= make app) is the escape hatch for a machine without the certificate: ad-hoc signing, Option A.

0.3.117 Nov 2026

Download mark-view-0.3.1.dmg4.6 MB

Added

  • Option B distribution signing: setting SIGN_IDENTITY signs the bundle and every nested Sparkle product inside-out with the Developer ID identity (hardened runtime, timestamped), make staple-app and make notarize-dmg notarize and staple the app and the dmg container, and make release chains them with make publish so the feed's zip carries the same identity Sparkle's host-update match requires. The default build stays ad-hoc (Option A) and update trust is unchanged — EdDSA signatures first. Drilled locally without publishing: the notarized app and dmg both pass Gatekeeper assessment (spctl: accepted, source=Notarized Developer ID).

Fixed

  • The dmg target no longer re-signs the app bundle before packaging. A Developer ID + --deep restamp would break the update chain: it restamps Sparkle's nested XPC services, and a Developer ID host refuses the ad-hoc update zips the release feed serves. The dmg now wraps the make app bundle unmodified; make notarize is gated until the Developer ID path (Option B in docs/architecture.md) lands.

0.3.017 Nov 2026

Download mark-view-0.3.0.dmg4.6 MB

Added

  • Diagram rendering for `mermaid fenced code blocks, via vendored mermaid.js 10.9.8 (MIT). Flowcharts, sequence diagrams and the other mermaid types render as SVG, centered in the reading column; the palette follows the light/dark appearance (re-rendered on appearance changes, since diagram colors are baked into each SVG); and the ~3.4 MB library is loaded lazily through the markview:// scheme only when a document actually contains a diagram. A broken diagram shows mermaid's error SVG while the other diagrams in the document still render. Diagram sources are rendered with HTML labels encoded and click handlers disabled (securityLevel: strict), right for rendering untrusted local documents.
  • Auto-update groundwork: future Sparkle releases will be served from a new public S3 bucket provisioned with terraform (appcast.xml plus the dmg/zip bins; anonymous HTTPS reads, plain HTTP refused). The bucket name is kept in sparkle-bucket.txt at the repo root, and provisioning lives in terraform/ with its own README.
  • Native printing (⌘P): the standard print panel with Save as PDF, driven by WebKit's own print pipeline (WKWebView.printOperation(with:) run as a sheet), so pages break where WebKit breaks them at print-media width and the @media print stylesheet applies: a light ink-on-paper palette no matter the chosen appearance (including the highlighter and diff colors), kept code/table/diff backgrounds, wrapped long code lines (diff blocks included), and block/heading break rules. The page margins carry the file name, the date and "Page N of M" via the view's drawPageBorder(with:); ⇧⌘P opens the stock Page Setup panel. ⌘P builds its print operation only once the window's page load has finished — an unloaded view can crash the call. Printing a broken render no longer strands the window blank: the newest requested document's failed in-place swap repairs with a full page load.
  • Auto-updates via Sparkle 2.10.1: a Check for Updates… item in the app menu, an "Automatically check for updates" toggle in Settings (Sparkle persists it itself, checked about once a day), and a release feed on the S3 bucket from the groundwork above. Nothing is downloaded or installed without the user confirming the update prompt; failures of automatic background checks are silent by design (the os_log uk.org.riviera.markview updates category records what the updater decided), while a manual check reports errors and "You're up to date!". Every release archive is EdDSA-signed (public key pinned in the app's Info.plist) because the app itself is ad-hoc signed, so the update signature is the only trust anchor Sparkle can use. make publish stages the zip, generates the signed appcast with generate_appcast and uploads both with the content types Sparkle requires; make verify-appcast does the same without uploading. The About panel's second number is the new monotonic build number: CFBundleVersion is now the commit count instead of a git describe string (Sparkle needs a strictly increasing build number to compare releases; the old stamp compared equal to its own tag), so builds now read "Version 0.2.1 (53)".

Fixed

  • Sizing the outline sidebar after a content change is linear in the number of headings instead of quadratic: the document's shallowest heading level is cached once per update instead of being recomputed for every row.
  • A window could stay permanently blank after a failed in-place swap while still claiming to have content: the applied fragment was recorded before the swap was confirmed, and stale render generations cancelled the fallback full reload. Swap and full-load completions now reconcile against one monotonic generation per render: unchanged re-renders skip only while no swap or load is outstanding, superseded completions are discarded instead of clobbering newer bookkeeping, and a failed swap repairs the newest requested document with a full page load (older failures never start a stale reload). This also fixes the intermittent ProcessorPropagationTests failure.
  • Metadata-only file changes no longer re-render the document: the watcher's vnode event mask no longer includes .attrib, so chmod, timestamp and extended-attribute touches are ignored. Only content writes, size changes, renames and deletions wake the watcher (external processors are consequently not rerun for events that did not change the content).