1. dotPen
  2. Blog
  3. Guides

How to preview Markdown in Quick Look on a Mac

I pressed Space on a README in Finder and got raw text full of pound signs. How to get rendered Markdown previews in Quick Look, and what to check when they don't work.

Nazmoon MunnyChief Overthinker at Dotbrain · 4 min read

I press Space in Finder dozens of times a day. Photos, PDFs, screenshots, all instant. Then one day I pressed it on a README and got this: a narrow window of plain text, pound signs down the left side, asterisks scattered through every paragraph.

Quick Look works for almost everything on a Mac. Markdown just isn’t one of the things it knows out of the box.

The fix takes a couple of minutes, and once it’s working you’ll check READMEs, plans and notes without opening a single app.

TLDR

macOS can’t render Markdown in Quick Look on its own, so it shows .md files as plain text. Install a Markdown viewer that comes with a Quick Look extension, like dotPen, and open it once so macOS registers the extension. Then select any .md file in Finder and press Space. If you still see plain text, check the extension is on under System Settings, General, Login Items & Extensions.

What Quick Look is, and why Markdown shows as plain text

Quick Look is the preview you get when you select a file in Finder and press Space. It’s also what you see in Finder’s preview pane and in column view.

For each kind of file, macOS needs something that knows how to draw a preview. Apple ships previews for images, PDFs, video, Office documents and plain text. A .md file is plain text underneath, so that’s how Quick Look shows it: the raw Markdown, symbols and all.

Apps can add their own previews through a Quick Look extension. That’s the piece you need for Markdown.

Get rendered Markdown previews

  1. Install a Markdown viewer that includes a Quick Look extension. I use dotPen, the free Markdown viewer for Mac we build, which has one.
  2. Move the app to your Applications folder if it isn’t there already, and open it once. That’s when macOS registers the app and its extension.
  3. Select a .md file in Finder and press Space.

You should see the rendered page: real headings, bold and italic text, lists and code blocks. Press Space again to close it, or use the arrow keys to move to the next file and keep previewing.

What shows up in the preview

This depends entirely on the extension. Some only handle basic formatting.

dotPen’s Quick Look extension uses the same renderer as the app itself. So the preview gets GitHub-style Markdown with tables, task lists and footnotes, code with syntax highlighting, Mermaid diagrams, and math. Front matter at the top of a file shows as a tidy card instead of a block of raw YAML.

A design doc rendered by dotPen in dark mode, with a Mermaid flowchart, a math formula, a table of plans and a code block

That’s a design doc an agent wrote, rendered the way dotPen draws it. The diagram is Mermaid, the formula is math, and both are just text in the file. It also previews .markdown and .mdx files, and Cursor’s .mdc rule files, not only .md.

When Space still shows plain text

If you installed a viewer and the preview still looks raw, check these in order.

1. Open the app once. If you haven’t launched it since installing, macOS may not know about the extension yet.

2. Check the extension is switched on. On macOS Sequoia and later, open System Settings, choose General, then Login Items & Extensions. Look for the app’s Quick Look extension in the Extensions list and make sure it’s on.

3. Confirm macOS can see it. Open Terminal and run this, replacing dotpen with your viewer’s name:

pluginkit -m -v -p com.apple.quicklook.preview | grep -i dotpen

If it prints a line with the app’s path, the extension is registered. If it prints nothing, the extension isn’t installed where macOS can find it. Reinstall the app into Applications.

4. Look for another app taking over. If you’ve installed more than one Markdown app, two extensions may both claim .md files, and you can’t pick between them in System Settings. Turn off the one you don’t want, or remove that app.

5. Test from Terminal. This opens a Quick Look preview directly, which tells you whether the problem is the extension or Finder:

qlmanage -p ~/Desktop/README.md

If that renders and Finder doesn’t, quit and reopen Finder. Hold Option, right-click Finder in the Dock, and choose Relaunch.

Quick Look or the full app?

I use Quick Look to decide whether to open something. A README from a download, a file someone dropped in a shared folder, a plan I want to glance at before a call.

When I’m actually reading, especially agent plans that keep changing, I open the file in the app. Quick Look shows the file as it is now. The app shows what changed since I last read it, keeps my place, and lets me leave comments. If you want a double-click to open the rendered page too, I covered that in how to open a .md file on a Mac. You can also see every feature in one place.

Once Quick Look renders Markdown, you’ll stop noticing it. That’s the goal. Space just shows you the page, the same as it does for a photo.

Questions

Why does Quick Look show my Markdown file as plain text?
macOS doesn't include a Markdown preview. Quick Look falls back to plain text until an app installs a Quick Look extension for Markdown files.
How do I turn on a Quick Look extension on macOS Sequoia or later?
Open System Settings, go to General, then Login Items & Extensions, and look for the app's Quick Look extension in the Extensions list. Make sure it's switched on.
Can Quick Look show Mermaid diagrams and math?
Only if the extension renders them. dotPen's Quick Look extension uses the same renderer as the app, so tables, task lists, code, Mermaid diagrams and math all show in the preview.
Does dotPen's Quick Look preview work with .mdx and Cursor rule files?
Yes. dotPen's extension previews .md, .markdown and .mdx files, and Cursor's .mdc rule files.

Keep reading

Guides4 min read

How to open a .md file on a Mac

The first .md file I opened looked broken, full of pound signs and asterisks. What a .md file is, why your Mac shows it as plain text, and four ways to see it rendered.

Nazmoon Munny

Guides5 min read

How to view Mermaid diagrams in Markdown on a Mac

Agents love drawing Mermaid diagrams, and a text editor shows every one as a block of code. How I view them rendered on my Mac, offline, and fix the ones that break.

Nazmoon Munny

Guides4 min read

How to export Markdown to PDF on a Mac

Someone asked me for "the plan as a PDF" and I realized I'd never made one from Markdown. The ways I tried on a Mac, which one I use now, and how to keep diagrams and tables intact.

Nazmoon Munny

Guides4 min read

How to paste Markdown into Slack and Google Docs

I pasted an agent's plan into Slack and got a wall of pound signs and double asterisks. What Slack and Google Docs actually do with Markdown, and how I copy now so it lands right.

Nazmoon Munny

Guides7 min read

The best Markdown viewers for Mac in 2026, compared

Before we built dotPen, I tried every Markdown viewer for Mac I could find. What each one is good at, what it costs, and which I'd pick for different kinds of work.

Nazmoon Munny

Guides9 min read

Where Claude Code stores memory, and how to read it

I told Claude Code to remember one thing in an empty repo, and nothing in the repo changed. Where the memory went, what the file says, and what happened with memory turned off.

Nazmoon Munny