Press space on a Markdown file in Finder and read it rendered: headings, tables, code, callouts, frontmatter and LaTeX math, in a calm reading theme that follows light and dark mode.
Spacedown is a macOS Quick Look extension. It renders in-process with bundled copies of marked, KaTeX and highlight.js, so it needs no network, no pandoc and no setup beyond opening the app once.
| Part | What it does | Needs |
|---|---|---|
Spacedown.app |
Quick Look preview for .md files |
macOS 13 or later |
spacedown CLI |
Companion renderer: Markdown to a self-contained HTML page through the same JavaScript core as Quick Look (marked, KaTeX, highlight.js), opened in a browser; spacedown docx exports a .docx |
macOS and a shell; pandoc only for docx |
| Safari drop extension (opt-in) | Drag a .md file onto a Safari tab to render it with the CLI |
build from source and the CLI |
Get the notarized Spacedown-<version>.dmg (or the .zip) from Releases. Open it, drag Spacedown to Applications, open it once, then select a .md file in Finder and press space. With Homebrew: brew install --cask consolelabs/tap/spacedown. The CLI is not linked by the cask yet; see below to set it up.
| Light | Dark |
|---|---|
![]() |
![]() |
- Math. Inline
$...$and display$$...$$math rendered by KaTeX. - Reading themes. An
iatheme by default (iA Writer's Quattro look), plustm(serif, from thinkingmachines.ai),paper, a serifreadmode and a monospacemonomode. - Word and Google Docs export.
spacedown docxturns Markdown into a.docxin the same iA look. - Dark mode. Every mode follows the system or browser appearance through
prefers-color-scheme. There is no flag. - Outline sidebar. A collapsible table of contents built from the headings, with scroll tracking. The
[key toggles it. - Zoom and copy source.
Cmd +,Cmd -andCmd 0scale the text. A toolbar button copies the original Markdown. - Reading modes. One Read button in the toolbar opens a menu: Off, Skim, Bionic, BeeLine and RSVP. One mode is active at a time, and the
Skey turns the last one on or off (Skim until you pick another). The choice is remembered (RSVP is not reopened on load), and print always renders the normal view.- Skim scores every word by how unexpected it is, from an English word-frequency prior blended with a model fitted on the page itself, and fades the predictable ones. It is a port of the scoring in skimgram, pinned to commit 4ebb78a and checked against it token by token (
node scripts/skim-parity.mjs). While Skim is on, the menu shows its settings, remembered like the mode: Emphasis (Dim, Heat, Underline; combine any, Dim by default), Intensity (0 to 100, default 50: how much of the page is marked) and Score (Auto, Surprisal or Contextual gain; Auto picks gain on pages of 600 tokens or more). A page that is not English, such as Vietnamese, is scored on its own words only. A page too short or too flat to score is left alone. - Bionic bolds the first part of each word, about 45% of its letters.
- BeeLine colours each line from ink to blue, then blue to ink to red, so each line starts on the colour the one above ended on.
- RSVP opens an overlay that shows one word at a time with the recognition letter in red on a centre marker.
Spaceplays and pauses, the arrow keys step and change the speed (150 to 700 words per minute),Esccloses it. It starts from the first paragraph on screen.
- Skim scores every word by how unexpected it is, from an English word-frequency prior blended with a model fitted on the page itself, and fades the predictable ones. It is a port of the scoring in skimgram, pinned to commit 4ebb78a and checked against it token by token (
- Frontmatter as a table. A leading YAML block renders as a key and value table. Frontmatter that strict YAML parsers reject still renders.
- Callouts. Obsidian-style
> [!note] Titleblocks render as styled callouts. - Wikilinks.
[[target]]and[[target|title]]render as links. - Wide tables scroll. Tables wider than the page scroll sideways instead of squashing.
- Relative images work. Images resolve against the source file's folder, wherever the HTML lands.
- Folder mode.
spacedown <dir>renders every top-level Markdown file and writes an index page. - Live reload.
--watchre-renders on save and refreshes the open page. - Editor fonts. Font settings from VS Code or VSCodium carry over to the page (see below).
The viewer is free: the Quick Look preview, the spacedown CLI and the MCP server, with no trial period or time limit. A Pro license will add paid features to the app later. Which features, and what they cost, are not decided yet.
The CLI is a single bash script plus the assets/ folder next to it. It renders HTML with the Quick Look JavaScript core under osascript -l JavaScript, so it needs macOS and nothing else: no pandoc, no python3. The Quick Look panel carries the same iA look as the default ia theme.
With the app. From the next release, Spacedown.app carries the CLI at Contents/Resources/cli/bin/spacedown, with the assets it needs beside it, and the cask will link it. Until then, link a source checkout (below) or, with a build that has it, link it yourself: ln -sfn /Applications/Spacedown.app/Contents/Resources/cli/bin/spacedown ~/.local/bin/spacedown. Inside the app the CLI reads the render core from the app's own Quick Look extension, so it carries no second copy; the iA fonts are not embedded in that copy, so install them (assets/fonts/ia in the repo) or the page falls back to system fonts. The Mac App Store build does not carry the CLI. pandoc is optional (see spacedown docx).
From source.
brew install entr # optional, only for --watch
brew install pandoc # optional, only for `spacedown docx` in the iA look
# python3 is optional: it powers the --watch page refresh (live reload).
git clone https://github.com/consolelabs/spacedown.git
cd spacedown
mkdir -p ~/.local/bin
ln -sfn "$PWD/bin/spacedown" ~/.local/bin/spacedown
spacedown --versionThe script resolves its own symlink, so assets/ must stay next to bin/. Make sure ~/.local/bin is on your PATH.
spacedown notes.md # render and open in a browser
spacedown docx notes.md # Markdown to .docx (see Export below)
spacedown notes.md --no-open # render only, print the output path
spacedown notes.md --out /tmp/page.html # choose the output path
spacedown notes.md --watch # re-render on save, page auto-refreshes
spacedown notes.md --font-mode read # serif reading mode
spacedown . # every .md in this folder, plus an indexThe default output path is /tmp/spacedown/<slug>.html, where the slug is the lowercased file name with every run of other characters turned into -. Rendering the same file again overwrites the same page, so a browser tab can stay open on it.
- stdout carries exactly one line on success: the absolute path of the HTML file.
open "$(spacedown notes.md --no-open)"works. - stderr carries everything else, each line prefixed with
spacedown:. - When stdout is not a terminal,
--no-openis implied. Scripts and coding agents can call the tool without opening a browser.
| Flag | Meaning |
|---|---|
<file> or <dir> |
A Markdown file, or a folder to render as an index (top level only). |
--out PATH |
Output HTML path. Parent folders are created. |
--no-open |
Do not open a browser. Implied when stdout is not a terminal. |
--shot PNG |
Screenshot the output HTML in a private headless Helium (else Chrome or Chromium) and write the PNG. Implies --no-open. See below. |
--shot-width N, --shot-height N |
Screenshot window size in px. Defaults: 1300 by 1100. |
--offline |
With --shot only. The screenshot browser resolves no hostnames, so the PNG shows what a reader with no network sees. Exits 64 without --shot. |
--watch |
Re-render on save (needs entr). With python3, the open page refreshes itself. Ctrl-C stops. |
--title STR |
Browser tab title. Default: the file name without its extension. |
--font-mode MODE |
ia (default), tm, paper, read or mono. See below. |
--no-standalone |
Emit an HTML fragment for embedding instead of a full page. |
--lint-json FILE |
Also write the Writing X-ray findings (dashes, long sentences, filler words, ticket IDs) to FILE as JSON, with the app's settings applied. |
--help, --version |
Print usage, or the version plus dependency status. |
spacedown notes.md --out /tmp/notes.html --shot /tmp/notes.pngRenders as usual, then screenshots the page headless. The browser is found the way scripts/layout-check finds it: BROWSER if set, else Helium, then Google Chrome and Chromium (macOS app paths, then PATH). Edge is never used. Each run uses a fresh temporary profile, so your own browser and its profile are never touched. stdout carries two lines: the HTML path, then the PNG path. For every table wider than its container, stderr gets a WARN wide table line that also names the body cell whose longest unbreakable run sets the width (row, column and its first 40 characters, flagged when it is inline code), because a table that scrolls sideways is the layout defect this flag exists to catch. With no browser installed it exits 4 with one line. It does not combine with --watch or a folder. Add --offline to block the network for the screenshot browser (it runs with --host-resolver-rules="MAP * ~NOTFOUND"): remote images and web fonts then fail to load, as for a reader with no connection. Local files and inlined KaTeX are unaffected.
| Mode | Look |
|---|---|
ia (default) |
A port of iA Writer's Quattro template: every heading at body size in bold, dash bullets, hairline table rules, near-black on #fcfcfc with 164% leading. Set in iA Writer Quattro and iA Writer Mono. Dark ground is iA's night #1a1a1a. |
tm |
Serif reading look with typography ported from thinkingmachines.ai (Georgia first, for full Vietnamese diacritics). Code containers are themed; syntax colors come from highlight.js (GitHub palette). |
paper |
Warm paper ground, a modest heading scale and soft rules. Set in iA Writer Quattro and iA Writer Mono when installed, otherwise in system fonts. Carries its own dark palette. |
read |
Proportional serif prose (Georgia first, for full Vietnamese diacritics) with monospace code and tables. |
mono |
Full editor fidelity: the fonts mirrored from the editor settings, monospace everywhere. |
The iA Writer fonts are free under the SIL Open Font License 1.1. The repo vendors the four variable files (Quattro V and Mono V, upright and italic) in assets/fonts/ia/ with their license, so the look is reproducible on any Mac. The browser themes name the fonts by family and do not embed them, so an installed copy is what a browser page uses. Install the fonts from github.com/iaolo/iA-Fonts or by copying assets/fonts/ia/*.ttf into Font Book. Without them the page falls back to system fonts. The Quick Look panel does embed the vendored fonts (see below).
assets/ia-theme.css, assets/tm-theme.css and assets/paper-theme.css are plain CSS, so each also works as a VS Code or VSCodium markdown.styles entry. Point the setting at the file with a file:// URL and an absolute path.
| Variable | Effect |
|---|---|
SPACEDOWN_FONT_MODE |
Default font mode when --font-mode is absent. Default: ia. |
SPACEDOWN_THEME_CSS |
A plain CSS file that replaces the CSS of the active ia, tm or paper mode. read and mono ignore it. |
SPACEDOWN_SETTINGS |
A settings.json to read preview fonts from. Default: VSCodium's, then VS Code's. |
SPACEDOWN_BROWSER |
App name to open pages in, for example "Google Chrome". Default: the first installed of Helium, Arc, Chrome, Edge and Brave, then the system default. |
spacedown reads markdown.preview.fontFamily, markdown.preview.fontSize, markdown.preview.lineHeight and editor.fontFamily from the settings file. With no settings file, stock VS Code defaults apply.
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Source file missing, unreadable or empty |
2 |
The renderer failed (osascript missing, or the render script errored) |
3 |
--watch requested but entr is not installed |
64 |
Usage error |
130 |
Ctrl-C during --watch |
spacedown mcp starts a Model Context Protocol server on stdio, so a coding agent can render, screenshot and lint the Markdown it writes before a person reads it. It is free, runs on the same osascript core as the CLI, and needs no node, python or network. Add it to your client's MCP config:
{"mcpServers": {"spacedown": {"command": "spacedown", "args": ["mcp"]}}}| Tool | Input | Returns |
|---|---|---|
render |
path or text (exactly one); optional out, title, font_mode |
html_path, the CLI's stdout line |
shot |
the render inputs, plus optional png, width, height, offline |
png_path, html_path and warnings: each table wider than the page and each red KaTeX formula, as {kind, message, ...} |
lint |
path or text (exactly one) |
findings: {rule, line, excerpt, message} for each dash, long sentence, filler word and ticket ID, plus the active rules. The app's settings apply. |
Inputs are strict: an unknown argument, a wrong type or both path and text come back as a tool result with isError: true and a message, never a crash. An unknown tool, an unknown method or malformed JSON is a JSON-RPC error. shot needs Helium, Chrome or Chromium, like --shot. The server implements protocol 2025-11-25 (it also answers 2025-06-18), and serves tools/list and tools/call without a prior initialize, so clients on the stateless 2026-07-28 revision work too. Files go to /tmp/spacedown/, as for the CLI. tests/smoke.sh --only mcp drives a scripted session.
spacedown docx notes.md # writes notes.docx next to it, prints the path
spacedown docx notes.md -o ~/Desktop/notes.docxThe result uses a pandoc reference doc (assets/docx/ia-reference.docx) that carries the iA look: ink #1a1a1a, 1.64 line height, headings at body size in bold, one block gap and about 70 characters per line. Frontmatter title: becomes the title block. HTML comments are dropped, so a private note in a comment never reaches the reader. iA Writer Quattro is not in the Google Docs font list, so the doc uses IBM Plex Sans and IBM Plex Mono, the faces iA's fonts derive from. It is a subcommand of the one spacedown CLI; there is no separate script. Plain spacedown <file> still renders HTML. A file literally named docx renders with spacedown ./docx. Without pandoc the .docx comes from macOS textutil instead: plainer (no iA styles, math as plain TeX), with a one-line note on stderr. Exit codes: 0 ok, 2 the reference doc missing (with pandoc) or neither pandoc nor textutil found, 64 usage, 66 input file not found.
To open it as a Google Doc, upload the .docx with GAM and ask Drive to convert it:
gam user <user> create drivefile drivefilename "<name>" localfile notes.docx mimetype gdoc
gam user <user> update drivefile <id> localfile notes.docx newfilename "<name>" # refresh in place, keeps sharingTo change the look, edit the style values at the top of scripts/build-docx-reference.py, run python3 -I scripts/build-docx-reference.py, and commit the script and the regenerated .docx together.
The Quick Look and Safari extensions live in one app bundle, Spacedown.app. One script builds, signs (ad hoc) and installs it.
Requirements: Xcode (for xcodebuild and swiftc) and XcodeGen (brew install xcodegen). node is optional: when present, the build first runs the Quick Look render tests.
integrations/build-safari.sh # the app with the Quick Look extension only
integrations/build-safari.sh --with-safari # also the Safari drop extension and its render helperintegrations/build-safari.sh also copies the CLI and its assets into the app with scripts/bundle-cli before signing. BUNDLE_CLI=0 leaves them out; the Mac App Store build does.
To notarize, sign with a Developer ID (SIGN_ID) and set NOTARIZE=<notarytool keychain profile>, or an App Store Connect API key with NOTARY_KEY=<.p8 path> NOTARY_KEY_ID=<id> NOTARY_ISSUER=<issuer> (headless, same variables as scripts/release.sh). Either one triggers notarization and stapling; the key wins when both are set.
| Installed item | Path | When |
|---|---|---|
Spacedown.app |
~/Applications/ |
always |
| Render helper (XPC) | ~/.local/libexec/spacedown-render |
--with-safari |
LaunchAgent dfoundation.spacedown.render |
~/Library/LaunchAgents/ |
--with-safari |
spacedown-open link |
~/.local/bin/spacedown-open |
--with-safari |
The Quick Look panel shows the iA look. Its sandboxed webview cannot load fonts installed on the Mac, so the build runs scripts/build-ql-skin. That step prepends @font-face rules carrying the four vendored iA Writer fonts as base64 data URIs to the skin source (integrations/safari/quick-look/Resources/ql-reading.css) and ships the result inside the app. The committed skin stays readable. SKIN_CSS=<file> replaces the skin with your own, used as given and not font-embedded. scripts/build-ql-skin [out.css] builds the embedded skin by itself.
After the build, select a .md file in Finder and press space. If the preview does not appear, enable Spacedown under System Settings > General > Login Items & Extensions > Quick Look.
The Safari extension must be App-Sandboxed to load, and a sandboxed extension cannot run the CLI. It therefore forwards each dropped file over XPC to a small unsandboxed helper, which launchd starts on demand and which exits when idle. To enable the extension after --with-safari:
- Safari > Settings > Developer: tick Allow unsigned extensions. An ad hoc signature counts as unsigned, and this setting resets on every Safari restart. A build signed and notarized with a Developer ID (
SIGN_IDandNOTARIZE, see the header ofbuild-safari.sh) skips this step; Safari does not list a Developer ID extension that is not notarized. - Quit and relaunch Safari.
- Safari > Settings > Extensions: tick Spacedown.
- Click the toolbar button, then drag a
.mdfile onto the drop page.
integrations/install.sh sets up two more entry points: a Finder "Open With" app and a native-messaging host for a Chromium drop extension. See integrations/README.md.
- The CLI renders with
osascriptand opens pages withopen(1), so it is macOS only. - The HTML path reads GitHub-flavored Markdown (marked), not pandoc Markdown: pandoc-only syntax such as definition lists, grid tables, citations and
{#id .class}attributes shows as written. - The input is Markdown only.
- Release downloads are notarized. A build from source is signed ad hoc, so Gatekeeper and Safari treat it as unsigned.
Bug reports, fixes and features are welcome. CONTRIBUTING.md takes you from a fresh clone to a green test run (bash tests/smoke.sh) and covers commits, PRs and issues. The rules every change follows are in AGENTS.md, and docs/README.md indexes the developer docs: development, testing and releasing.
- The browser look builds on VS Code's markdown preview stylesheet (Microsoft, MIT).
- Math by KaTeX, Markdown parsing in Quick Look by marked, code highlighting in Quick Look by highlight.js,
.docxconversion by pandoc. - The
iaandpaperthemes and the Quick Look skin use the iA Writer Quattro and iA Writer Mono typefaces, vendored under the SIL Open Font License 1.1. Fonts by Information Architects. Theialook ports the Quattro template of iA Writer, and thetmlook ports the typography of thinkingmachines.ai.
Licenses for bundled third-party code are in THIRD_PARTY_NOTICES.md.
Spacedown lives at consolelabs/spacedown. Maintained by Console Labs. Copyright (c) 2026 Console Labs.
Spacedown is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). Release v1.1.0 and every release before it, and every commit before the AGPL change, were published under the MIT license and stay MIT. Later versions are AGPL-3.0-only. See NOTICE.
The license covers the code, not the Spacedown name or icon. What you can do with them is in TRADEMARKS.md. Contributions come in under the MIT license and ship under the AGPL; CONTRIBUTING.md says why.



