md-review
v0.0.7
Published
Review Markdown files in your browser with inline comments
Readme
md-review

A CLI tool for reviewing Markdown files with inline comments. Comments can be copied and used as feedback for AI agents.
Features
- 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
Install
npm install -g md-reviewUsage
md-review [options] # Browse all markdown files in current directory
md-review <file> [options] # Preview a specific markdown fileOptions
-p, --port <port> Server port (default: 3030)
--no-open Do not open browser automatically
-h, --help Show this help message
-v, --version Show version numberExamples
md-review # Browse all markdown files in current directory
md-review README.md # Preview README.md
md-review docs/guide.md --port 8080Comment Management
Adding Comments
- Select text in the markdown preview
- Click the "Comment" button that appears
- Type your comment and press
Cmd/Ctrl+Enteror click "Submit"
Editing Comments
- 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
Keyboard Shortcuts
Cmd/Ctrl+Enter- Submit/Save commentEscape- Cancel editingCmd+K- Focus search bar (in directory mode)
Hot Module Replacement
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.
