RenderingAppears in · Pane / ToastAdded

md-preview

Renders Markdown Claude edits in a pane like GitHub, with before/after compare.

md-preview · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
❯

Illustration. Actual results depend on the mod, terminal and environment.

Install

/plugin marketplace add hamzafer/claude-code-mods
/plugin install md-preview@claude-code-mods
/reload-plugins

Run these commands one at a time in a Claude Code session.

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads edited Markdown, git remotes, and HOME/terminal capabilities.

Writes files

Yes

Writes rendered pages, a throwaway Chrome profile, and PNG screenshots under a temp dir.

Runs commands

Yes

Runs git, gh, and a Headless Chrome/Chromium screenshot script.

Network

Yes

Calls GitHub's /markdown API via gh; Chrome may load linked images.

Introduction

md-preview is a Claude Code function-hooks mod: when Claude edits .md/.mdx/.markdown, a toast notes it, and /md opens a GitHub-style rendered preview in a pane, with before/after compare, multi-file browsing, and opening the full page in a browser.

  • Renderer order: gh api /markdown when gh is signed in; otherwise a built-in renderer; text-only without Chrome or an image terminal.
  • Privacy: in repos with a GitHub remote, Markdown text is sent to GitHub's API via gh in the background at turn end even if you never open /md. Headless Chrome uses a throwaway profile; scripts do not run.
  • Needs: Google Chrome/Chromium and an image-capable terminal (Ghostty, kitty, iTerm2, WezTerm); no images through tmux.

Marketplace hamzafer/claude-code-mods, plugin md-preview. Needs Claude Code 2.1.287+. Preview is illustrative.

Who it is for

  • People who have Claude edit README/docs and want a live rendered preview

Requirements

  • Claude Code ≥ 2.1.287
  • Full page preview needs Chrome/Chromium and an image terminal; no images through tmux.
  • Optional signed-in gh for GitHub's official renderer.