Preview Markdown files in Finder with Quick Look on Mac

notes.mdQuick Look preview

Select a Markdown file in Finder, press Space, and macOS shows the raw text: pound signs, asterisks and all. Quick Look can show a finished page instead, but it needs something that knows how to render Markdown. Here is what the Mac does on its own, where that stops, and how to get a styled preview.

A Finder Quick Look window previewing Field Notes.md in the dark Serif theme, with a swift code block and an Open with MarkPeek button

What macOS does with a Markdown file

Markdown files are plain text, so Quick Look treats them as plain text. You see the source exactly as written, in a monospaced font, with headings still marked by # and emphasis still wrapped in asterisks. That is fine for a three-line note and tiring for a long README.

The Preview pane in a Finder window uses the same previews, so it shows the same raw text. macOS has no built-in Markdown renderer for Quick Look.

Option 1: Live with the raw text

For short files, the plain-text preview is quick and requires nothing. Arrow keys still move through a folder of notes, so you can skim contents without opening anything.

Where it falls down: tables become rows of pipes, links show as bracketed URLs, code blocks have no syntax colors, and there is no sense of structure. Long documents are hard to scan.

Option 2: Open the file in another app

TextEdit opens .md files as plain text too, so it shows the same raw view. Editors such as VS Code have a Markdown preview, but opening an editor to read a file defeats the point of a quick look, and you pay for the launch time on every file.

Third-party Quick Look extensions for Markdown also exist. They solve the same problem, so check that the one you choose is maintained, runs in the sandbox and lets you change the style.

The MarkPeek way

MarkPeek ships a Quick Look extension for Markdown, plus a Finder thumbnail extension. Once it is installed and enabled, the Space bar shows your file rendered with the active MarkPeek theme.

  1. Move MarkPeek to /Applications and open it once, so macOS registers the Quick Look extension. It is not notarized, so the first launch needs a Gatekeeper step (see the home page).
  2. Select any Markdown file in Finder: .md, .markdown, .mdown, .mkd, .mkdn, .mdwn, .mdtxt, .mdtext, .mdx, .rmd or .qmd.
  3. Press Space. The Quick Look window opens with the rendered page and an "Open with MarkPeek" button.
  4. Use the arrow keys to move through the other Markdown files in the folder.

Choose the theme Quick Look uses

Quick Look uses whichever theme is active in the app. Pick one from the Theme menu or the sidebar: Modern, Serif, GitHub, Plain, Paper or Mono. Each has a light and a dark palette, and by default previews follow the system appearance. To tune a theme, open the Theme Inspector with ⌥⌘I and adjust the Type, Layout, Colors and Extras tabs, then use "Save As…" to keep it.

Because the app and the extension share one theme store, there is nothing to sync: change the theme, and the next Space press looks different.

MarkPeek with the Theme Inspector open on the Type tab for the Modern theme, with font pickers, size sliders and a Save As button

Settings and setup that matter

qlmanage -r

What to expect from the preview

The preview renders CommonMark with tables, task lists and strikethrough, front matter, syntax colors for fenced code, math and Mermaid diagrams. If a math or Mermaid render takes too long, the preview shows the source instead of hanging. Thumbnails are a separate extension that draws a small page with the title and first lines, always in the light palette of the active theme.

Images referenced by a web address are fetched from the web when the preview opens. Images stored next to the file are embedded locally, once the folder is allowed.

Frequently asked questions

Why does Quick Look show Markdown as plain text?

Markdown files are plain text and macOS has no built-in Markdown renderer for Quick Look, so it shows the source. An extension such as MarkPeek has to supply the rendering.

Does the Quick Look preview follow dark mode?

Yes. By default a theme follows the system appearance, using its light or dark palette. A theme can also be set to always light or always dark.

Does the preview need an internet connection?

No, except for remote images. Markdown, math and Mermaid render offline. If a document links an image by http or https URL, it is loaded from the web.

Which file extensions get the preview?

The eleven extensions MarkPeek declares: .md, .markdown, .mdown, .mkd, .mkdn, .mdwn, .mdtxt, .mdtext, .mdx, .rmd and .qmd, plus the Markdown content types used by iA Writer and TextBundle.

Related guides