All shelves / Mods / Review
md-preview
By hamzafer
md-preview is a Claude Code review mod by hamzafer.
When Claude edits Markdown, draws the before and after beside the session, rendered the way GitHub does.
Draws
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add hamzafer/claude-code-mods claude plugin install md-preview@claude-code-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.8
- License
- MIT
- Repo stars
- 381
- Last change
- 2026-10-23
What it can reach
- Draws in the session
- Reads this turn's file edits
- Reaches the network or an outside service
- Calls another program on this machine
Claude Code 2.1.287 or later. The author says to restart after installing. The rendered view needs Google Chrome or Chromium and a terminal that shows images, such as Ghostty, kitty, iTerm2, or WezTerm, and does not work through tmux. Without them you get a text view. The author built and tested it on macOS. When Claude edits a .md, .mdx, or .markdown file, shell writes included, a toast says so once per file per turn. /md opens a pane on the latest one, /md <path> on any file, and /md compare <a> <b> two files side by side. In the pane, b shows before and after, n and p move between files, o opens the page in your browser, t switches to text, and q closes. A green bar marks the blocks the last edit changed. It renders with GitHub's own renderer through gh api /markdown when the repo has a GitHub remote and gh is signed in, and with a small built-in renderer otherwise. The author says that with the GitHub renderer the file's text goes to GitHub's API under your own gh login, for every Markdown file Claude edits, at the end of the turn, even if you never open /md. Scripts in the Markdown never run. /mdview does the same as /md.
The marketplace, claude-code-mods, holds all of hamzafer's mods. This one installs on its own, or from the checklist that npx claude-code-mods@latest opens. Rendering the Markdown Claude changed is why this page files it under review. mdview, by xuanji86, opens a clicked Markdown path as a rendered pane beside the conversation and sends an edit you type in a block. cc-preview, by andrew54068, draws hover cards and image thumbnails, with a side pane that previews markdown. This one waits for Claude to edit a Markdown file, then shows the page before and after the edit, rendered the way GitHub does.
Demo

What it hooks into
session.startWhen a session startsturn.startWhen Claude starts a turnturn.completeWhen a turn endstool.callAround a tool call, where it can hold onecommand.runWhen you run its slash command/md/mdviewui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 2
/md/mdview
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- hamzafer
- Category
- Review
- Marketplace
- claude-code-mods
- Folder
- mods/md-preview
- Version
- 0.1.8
- License
- MIT
- Repo stars
- 381
- Last change
- 2026-10-23
- Language
- TypeScript
- Files
- 8