Preview Markdown In Finder With Quick Look

Select a .md file, press Space and read it rendered, on macOS 13 or later

  • Works without the Space helper
  • Edit in place, live updates
  • Free and open source
  • macOS 13+
README.md
The demo’s README.md, rendered: drawn in HTML, not a screenshot.

macOS has no Markdown previewer, so Space on a .md file shows raw text: # marks, asterisks and pipes. spacebar is a Quick Look extension that fixes that: a free, open-source replacement for Quick Look that renders Markdown properly. See how Quick Look apps compare.

Install It

Download for Mac

Or paste this in Terminal

curl -fsSL https://spacebar.patebryant.com/install.sh | sh

The script downloads the latest notarized release from GitHub, checks its SHA-256 and installs to ~/Applications, no sudo. Read the script.

Press Space

  1. README.mdSelect a .md or .markdown file in Finder.
  2. SpaceIt opens rendered, in Quick Look or, with the Space helper, spacebar’s window.
  3. ↑ ↓Move through the sidebar, opening each file.
  4. Space EscClose it. If the sidebar holds the arrows, the first press hands them back.

Turn It On

  1. Install spacebar from the .dmg, or with the Terminal command above, which installs it to ~/Applications and turns the extension on.

  2. Check that spacebar is ticked in System Settings › General › Login Items & Extensions › Quick Look. On macOS 13 and 14: Privacy & Security › Extensions › Quick Look.

  3. Turn off any other Markdown previewer in that list. spacebar’s Settings shows the ones that are on, with a Turn Off button.

  4. Select a .md file in Finder and press Space.

Space opens spacebar for .md, .markdown, .mdown, .mkd and .mkdn files. No helper and no Accessibility needed.

What You’ll See

Tables, Tasks And Code

spacebar reads GitHub-flavored Markdown. A wide table scrolls on its own instead of squeezing the page. Task lists show real checkboxes. Code fences are highlighted, with their language and a Copy button, and a diff fence shows added lines green and removed lines red.

Diagrams And Math

Put a diagram in a mermaid fence and it is drawn, not shown as code. A diagram that fails to draw shows the reason. KaTeX sets $inline$ and $$block$$ math. Both are bundled with the app, so nothing loads from the web. "mermaid": false or "math": false in settings.json turns either off. More in Mermaid diagrams on Mac.

Front Matter, Contents And Links

Themes And Type

Six themes, Apple, GitHub, Paper, Solarized, Nord and High Contrast, each in light and dark. The Aa button sets the text size, theme, page width and font. Your own CSS goes in a custom theme or custom.css.

Edit It Where You Read It

When the file changes on disk, the preview redraws and keeps your place, so a note or a plan stays current beside your editor. If it changes while you are editing, its change stays on disk and a banner lets you keep yours, use the disk version, or copy your text. It is a preview first, not an editor: Open sends the file to your editor. More in Edit Markdown in Quick Look.

Find, Raw And Copy

⌘F finds in the document. Raw switches to the Markdown source for as long as the preview stays open. Copy, at the bottom right, copies the whole file’s text.

The Folder Beside It

The sidebar lists the whole folder in Finder’s order, and the arrow keys move from file to file. ⌥⌘F filters by name, and Names | Contents searches the text of the Markdown, code and text files in every folder under it. A folder of notes opens on its README, index or Home note. Obsidian vaults keep their wikilinks, embeds, callouts and tags.

Safe And Offline

With the optional Space helper, which needs Accessibility, Space opens PDFs, photos, CSV and nearly every other file in spacebar.

Still Seeing Plain Text

Another Markdown extension, such as QLMarkdown, may be taking the file. The installer lists any that are on, and spacebar’s Settings can turn each off. See QLMarkdown and spacebar. qlmanage -r resets a stuck preview.

Try the demo first. More: Obsidian vaults and Claude Code’s plans.

Questions

Why does Quick Look show Markdown as plain text?

macOS has no Markdown previewer of its own, so Quick Look shows the raw text: # marks, asterisks and pipes. A Quick Look extension such as spacebar renders it.

Is there a free Markdown Quick Look extension?

Yes. spacebar is free and open source under the MIT license, for macOS 13 or later. QLMarkdown is free too.

Does it draw Mermaid diagrams?

Yes. A mermaid code fence is drawn as a diagram, and KaTeX sets $inline$ and $$block$$ math. Both are bundled.

Does it work offline?

Yes. Everything it needs to render is bundled. Remote images are off by default, and the only request it makes on its own is a daily update check.

Can I edit the file in the preview?

Yes. Click a paragraph and type, or tick a task. It saves to the file as you type, and ⌘Z undoes it.

Can it run beside QLMarkdown?

Quick Look uses one previewer per file type, so one of them wins for .md. Turn the other off in System Settings › General › Login Items & Extensions › Quick Look. See QLMarkdown and spacebar.