A CLI tool for reviewing Markdown files with inline comments. Comments can be copied and used as feedback for AI agents.
- Display Markdown in its original format
- Add comments to specific lines
- Edit existing comments
- Select files from tree view
- Dark mode support (follows system preferences)
- Resizable and collapsible sidebars
- Click line numbers in comments to jump to corresponding content
- Hot reload when markdown files change
npm install -g md-reviewmd-review [options] # Browse all markdown files in current directory
md-review <file> [options] # Preview a specific markdown file
md-review <directory> [options] # Browse markdown files in a specific directory-p, --port <port> Server port (default: 3030)
--no-open Do not open browser automatically
-h, --help Show this help message
-v, --version Show version numbermd-review # Browse all markdown files in current directory
md-review docs # Browse markdown files in docs directory
md-review README.md # Preview README.md
md-review docs/guide.md --port 8080- Select text in the markdown preview
- Click the "Comment" button that appears
- Type your comment and press
Cmd/Ctrl+Enteror click "Submit"
- Click the edit icon (pencil) on any existing comment
- Modify the text in the textarea
- Press
Cmd/Ctrl+Enteror click "Save" to save changes - Press
Escapeor click "Cancel" to discard changes
Cmd/Ctrl+Enter- Submit/Save commentEscape- Cancel editingCmd+K- Focus search bar (in directory mode)
md-review automatically watches for changes to markdown files:
- When you edit and save a markdown file, the preview updates automatically
- No manual browser refresh needed
- Works in both single file and directory browsing modes
- File watching uses efficient Server-Sent Events (SSE)
This makes it ideal for live editing workflows and quick iteration on documentation.
