A lightweight Chrome extension that adds inline commenting to GitHub's rich diff view for markdown files.
- Open a PR with markdown files on GitHub
- Click "Display the rich diff" button on a
.mdfile - Select any text in the rendered markdown
- A comment box appears - type your comment
- Comment is pre-filled in GitHub's comment form with a reference to your selection
npm install
npm run buildThen in Chrome:
- Go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
distfolder
- No token required - works with GitHub's native UI
- Uses GitHub's rich diff - no custom rendering needed
- Character-level selection - comment on specific phrases
- Keyboard shortcuts - ⌘/Ctrl+Enter to submit, Escape to cancel
Comments include a hidden metadata reference:
[//]: # (md-review:{"file":"README.md","start":150,"end":180,"text":"selected phrase"})
**On "selected phrase":**
Your comment here.This metadata allows the extension (or other tools) to locate the exact text selection.
npm run dev # Watch mode
npm run build # Production build
npm run clean # Remove dist/