Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
mdview logo

mdview

markdown-viewer

productivityClaude Codeby heysamtexas

Summary

Preview markdown files and export to PDF using the native macOS MarkdownViewer app

Install to Claude Code

/plugin install mdview@markdown-viewer

Run in Claude Code. Add the marketplace first with /plugin marketplace add heysamtexas/markdown-viewer if you haven't already.

README.md

MarkdownViewer

A lightweight, native macOS application for viewing Markdown files with GitHub Flavored Markdown support and Mermaid diagram rendering.

Features

  • Native macOS Experience: Document-based architecture with multi-window support
  • GitHub Flavored Markdown: Tables, task lists, strikethrough, autolinks via cmark-gfm
  • Mermaid Diagrams: Flowcharts, sequence diagrams, and more (bundled locally, no CDN)
  • Quick Look Extension: Preview markdown files in Finder with spacebar
  • Dark Mode: Automatic theme switching based on system appearance
  • CLI PDF Export: Convert markdown to PDF from the terminal — no GUI needed
  • Security Hardened: Content Security Policy, URL scheme validation

System Requirements

  • macOS 13.0 (Ventura) or later
  • Xcode 15+ (for building from source)

Installation

From Source

git clone https://github.com/heysamtexas/markdown-viewer
cd markdown-viewer
make install   # Build, sign, and install to /Applications

Optionally create a mdview command-line shortcut:

sudo make symlink   # Creates /usr/local/bin/mdview

Enable Quick Look

After installation, enable the Quick Look extension:

1. Open System Settings > Privacy & Security > Extensions > Quick Look 2. Enable MarkdownViewer

Or via terminal:

pluginkit -e use -i com.example.MarkdownViewer.QuickLook
qlmanage -r

Usage

GUI

  • Open files: File > Open (⌘O), drag-and-drop, or double-click .md files
  • Quick Look: Select a .md file in Finder and press Space
  • Multiple files: Each file opens in its own window
  • Print / Export PDF: ⌘P to print, ⇧⌘E to export as PDF

CLI: Export to PDF

Convert markdown files to PDF from the terminal, with full Mermaid diagram support:

mdview export document.md -o document.pdf

Or use the full app path without the symlink:

/Applications/MarkdownViewer.app/Contents/MacOS/MarkdownViewer export input.md -o output.pdf

The CLI runs headless — no window or dock icon appears.

Supported File Types

  • .md
  • .markdown

Technical Details

| Component | Technology | |-----------|------------| | UI Framework | SwiftUI | | Document Model | FileDocument protocol | | Markdown Parser | cmark-gfm (Swift Package) | | Rendering | WKWebView | | Diagrams | Mermaid.js (bundled) |

Claude Code Plugin

MarkdownViewer includes a Claude Code plugin that adds a /mdview slash command for previewing markdown files and exporting them to PDF directly from Claude Code.

Install the Plugin

/plugin marketplace add heysamtexas/markdown-viewer

Then install the mdview plugin from the marketplace when prompted (or via /plugin).

Usage in Claude Code

/mdview README.md                    # Preview in the app
/mdview export README.md             # Export to PDF
/mdview export README.md -o out.pdf  # Export to specific path

License

MIT

Contributing

This project is maintained with agentic coding tools. See CLAUDE.md for development workflow.

Related plugins

Browse all →