A macOS Quick Look extension that renders Markdown files (.md, .markdown) as styled HTML when you press Space in Finder.
- GitHub-flavored Markdown rendering
- Automatic light/dark mode support
- Headings, bold, italic, strikethrough, inline code
- Fenced code blocks with language detection
- Tables, task lists, blockquotes
- Links, images, horizontal rules
- No runtime dependencies -- built with Swift and Command Line Tools (no Xcode required)
- macOS 12+
- Swift (via Xcode Command Line Tools)
git clone https://github.com/YendiGB/QLMarkdownViewer.git
cd QLMarkdownViewer
make installAfter installation:
- Open the app once from
~/Applications/QLMarkdownViewer.app - The Quick Look extension registers automatically
- Select any
.mdor.markdownfile in Finder and press Space
If the extension doesn't activate, enable it in: System Settings > General > Login Items & Extensions > Quick Look
make uninstallmake buildThe built app will be at build/QLMarkdownViewer.app.
This is a macOS Quick Look Preview Extension (.appex) embedded in a minimal host app:
- Host app -- minimal macOS app that exists only to deliver the extension
- Preview extension -- data-based Quick Look extension that converts Markdown to HTML
- MarkdownParser -- regex-based GFM Markdown-to-HTML converter
- CSS -- GitHub-flavored stylesheet with automatic light/dark mode
MIT