Fix Quick Look showing plain text for Markdown on Mac

notes.mdnot raw text

You installed a Markdown preview extension, pressed Space on a .md file and still got raw text. That is almost always one of four things: the extension is switched off, the app was never launched, Quick Look cached the old result, or the file type is not one the extension handles. Work through them in this order.

A Quick Look window over Finder previewing sample.md in a dark theme, with rendered display math and a Mermaid flowchart

Why macOS shows plain text in the first place

Markdown is a text format, so with no Markdown preview installed, Quick Look falls back to plain text. A preview extension has to register itself for Markdown content types, and macOS lets you switch each extension on or off. Until it is both registered and enabled, you see the source.

Fix 1: Launch the app once

Quick Look extensions live inside an app bundle, and macOS only discovers them after the app has been opened. If you installed the app and never started it, the extension is not registered yet. Open MarkPeek once. The first launch also shows a Welcome Tour that walks through Finder previews, image access and the default app. If macOS refuses to open it because it is not notarized, clear the quarantine flag first.

xattr -dr com.apple.quarantine /Applications/MarkPeek.app

Alternatively try to open the app, then go to System Settings ▸ Privacy & Security and choose "Open Anyway". Keep the app in /Applications.

Fix 2: Switch the extension on

On most Macs macOS enables a new Quick Look extension automatically. If it did not, open System Settings ▸ General ▸ Login Items & Extensions ▸ Quick Look and turn MarkPeek on. MarkPeek can take you there: in Settings ▸ General, the "Finder previews" row has an "Open Extension Settings…" button, and the Welcome Tour has the same button on its Finder Previews step.

Fix 3: Reset the Quick Look cache

Quick Look keeps generated previews and a list of its extensions. After enabling an extension, reset it so Finder asks again.

qlmanage -r
qlmanage -r cache

If a Finder window still shows the old preview, close the Quick Look window, select another file, and try again. Relaunching Finder is a last resort.

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

Fix 4: Check the file type

The preview applies to Markdown content types, not to every text file. MarkPeek covers these extensions: .md, .markdown, .mdown, .mkd, .mkdn, .mdwn, .mdtxt, .mdtext, .mdx, .rmd and .qmd, plus the Markdown types used by iA Writer and TextBundle. A file called notes.txt that happens to contain Markdown is plain text to macOS and is not previewed, even though MarkPeek's Open panel accepts .txt. Rename it to .md and press Space again.

You can test a single file from Terminal. The command opens a Quick Look window for it, which is useful for separating a Finder issue from a file issue.

qlmanage -p ~/Documents/notes.md

Fix 5: Check for competing previewers

If you have another Markdown Quick Look extension installed, two extensions may claim the same file types. Turn the one you do not want off in the same System Settings pane and reset the cache again.

If nothing helps

Check that you are on macOS 14 Sonoma or later, because MarkPeek does not support older versions. Confirm the app is in /Applications and was launched after any move or replacement. Quit and reopen Finder, or log out and back in, so macOS rescans its extensions. If you built MarkPeek from source, the build script registers the extensions and resets the Quick Look cache for you, so run it again after a rebuild.

Two things that look like bugs but are not

How to confirm it works

Select a Markdown file, press Space, and look for rendered headings, a styled code block and an "Open with MarkPeek" button in the Quick Look window. The look follows the theme active in the app, so changing the theme and pressing Space again is the quickest check.

Frequently asked questions

Quick Look still shows raw Markdown after I enabled the extension. What now?

Run qlmanage -r in Terminal to reset the cache, close the Quick Look window and try again. Confirm the file ends in .md or another supported extension.

Where is the Quick Look extension switch?

System Settings ▸ General ▸ Login Items & Extensions ▸ Quick Look. MarkPeek's "Open Extension Settings…" button opens it.

Why do I need to open the app first?

macOS registers extensions when it sees the app. Launching MarkPeek once makes its Quick Look and thumbnail extensions available.

Does the preview work for .txt files?

No. The Quick Look extension covers Markdown content types. Rename the file to .md to get the preview.

Related guides