By heysamtexas
Preview markdown files and export to PDF using the native macOS MarkdownViewer app
A lightweight, native macOS application for viewing Markdown files with GitHub Flavored Markdown support and Mermaid diagram rendering.
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
After installation, enable the Quick Look extension:
Or via terminal:
pluginkit -e use -i com.example.MarkdownViewer.QuickLook
qlmanage -r
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.
.md.markdown| Component | Technology |
|---|---|
| UI Framework | SwiftUI |
| Document Model | FileDocument protocol |
| Markdown Parser | cmark-gfm (Swift Package) |
| Rendering | WKWebView |
| Diagrams | Mermaid.js (bundled) |
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.
/plugin marketplace add heysamtexas/markdown-viewer
Then install the mdview plugin from the marketplace when prompted (or via /plugin).
/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
MIT
This project is maintained with agentic coding tools. See CLAUDE.md for development workflow.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
SOC 2 compliance advisor specializing in code and infrastructure controls. Provides guidance on access controls, secrets management, logging, and audit preparation.
Persnickety technical copywriter who ruthlessly ensures clarity in documentation, README files, error messages, and user-facing content.
Productivity slash commands: /catchmeup for commit summaries and /auditclaudemd for Claude Code best practices review.
Django code coverage analysis and enforcement agent. Analyzes coverage reports, enforces standards, and creates improvement tasks.
Development workflow hooks: pre-commit formatting with ruff and custom statusline showing model, directory, and git branch.
Markdown preview server for AI coding agents. Renders markdown live in the browser with instant reload, Mermaid diagrams, and GFM support.
Manage mo markdown viewer sessions with group-based organization: auto-start, browser integration, per-project watch patterns, port isolation
Create beautiful HTML presentations from markdown specs using a Poimandres-themed template
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimnpx claudepluginhub heysamtexas/markdown-viewer --plugin mdview