Marginalia ์ ์์: gnsharma0810
Add review comments to GitHub's rich markdown diffs. A browser extension for Chrome and Firefox that lets you comment on markdown files in GitHub PR rich diff views โ something GitHub doesn't natively support.
ํ์ฅ ๋ฉํ ๋ฐ์ดํฐ
์คํฌ๋ฆฐ์ท
์ ๋ณด
Add review comments to GitHub's rich markdown diffs.
A browser extension for Chrome and Firefox that lets you comment on markdown files in GitHub PR rich diff views โ something GitHub doesn't natively support.
โโโโโโโโโโโโโโโโโโโโ
โฆ FEATURES
โโโโโโโโโโโโโโโโโโโโ
โจ/โฉ Jump to Source Diff
Hover over any paragraph, heading, or block in the rich diff to see a source button. Click it to switch the file to source diff mode, where GitHub's native inline commenting works.
๐ฌ Inline Comment Overlay
Hover to see a comment button that opens a comment form right there in the rich diff. The extension maps the rendered block back to the source line number and posts a real PR review comment via the GitHub API.
Both approaches can be used together (default) or individually โ configurable in the extension popup.
โโโโโโโโโโโโโโโโโโโโ
โ HOW TO USE
โโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโ
โ HOW LINE MAPPING WORKS
โโโโโโโโโโโโโโโโโโโโ
The extension fetches the file's source content from the PR's head branch and uses a text-matching heuristic to find which source lines correspond to each rendered block. It then maps those to diff positions for the GitHub API. The mapping isn't perfect for heavily edited files, but works well for typical docs/README changes.
โโโโโโโโโโโโโโโโโโโโ
โจ KEYBOARD SHORTCUTS
โโโโโโโโโโโโโโโโโโโโ
Cmd/Ctrl + Enter โ Submit comment
Escape โ Cancel / close comment form
โโโโโโโโโโโโโโโโโโโโ
โ LIMITATIONS
โโโโโโโโโโโโโโโโโโโโ
โข Line mapping is heuristic-based and may occasionally target a nearby line instead of the exact one
โข Very large diffs (100+ files) may hit API rate limits
โข The extension only activates on PR "Files changed" pages
โข Rich diff must be enabled for the markdown file (GitHub's default for .md)
โข Firefox: inline commenting requires manually granting api.github.com host permission (see Installation)
A browser extension for Chrome and Firefox that lets you comment on markdown files in GitHub PR rich diff views โ something GitHub doesn't natively support.
โโโโโโโโโโโโโโโโโโโโ
โฆ FEATURES
โโโโโโโโโโโโโโโโโโโโ
โจ/โฉ Jump to Source Diff
Hover over any paragraph, heading, or block in the rich diff to see a source button. Click it to switch the file to source diff mode, where GitHub's native inline commenting works.
๐ฌ Inline Comment Overlay
Hover to see a comment button that opens a comment form right there in the rich diff. The extension maps the rendered block back to the source line number and posts a real PR review comment via the GitHub API.
Both approaches can be used together (default) or individually โ configurable in the extension popup.
โโโโโโโโโโโโโโโโโโโโ
โ HOW TO USE
โโโโโโโโโโโโโโโโโโโโ
- Open any GitHub PR's "Files changed" tab
- Find a markdown file (.md, .markdown, .mdx) showing the rich diff
- Hover over any content block (paragraph, heading, list, code block, etc.)
- Two buttons appear on the left:
โจ/โฉ Switch to source diff for native commenting
๐ฌ Open an inline comment form - Write your comment and hit Comment (or Cmd/Ctrl + Enter)
โโโโโโโโโโโโโโโโโโโโ
โ HOW LINE MAPPING WORKS
โโโโโโโโโโโโโโโโโโโโ
The extension fetches the file's source content from the PR's head branch and uses a text-matching heuristic to find which source lines correspond to each rendered block. It then maps those to diff positions for the GitHub API. The mapping isn't perfect for heavily edited files, but works well for typical docs/README changes.
โโโโโโโโโโโโโโโโโโโโ
โจ KEYBOARD SHORTCUTS
โโโโโโโโโโโโโโโโโโโโ
Cmd/Ctrl + Enter โ Submit comment
Escape โ Cancel / close comment form
โโโโโโโโโโโโโโโโโโโโ
โ LIMITATIONS
โโโโโโโโโโโโโโโโโโโโ
โข Line mapping is heuristic-based and may occasionally target a nearby line instead of the exact one
โข Very large diffs (100+ files) may hit API rate limits
โข The extension only activates on PR "Files changed" pages
โข Rich diff must be enabled for the markdown file (GitHub's default for .md)
โข Firefox: inline commenting requires manually granting api.github.com host permission (see Installation)
0๋ช
์ด 0์ ์ผ๋ก ํ๊ฐํจ
๊ถํ ๋ฐ ๋ฐ์ดํฐ
ํ์ ๊ถํ:
- github.com์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ ํ์ ๊ถํ:
- api.github.com์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
๋ฐ์ดํฐ ์์ง:
- ๊ฐ๋ฐ์๊ฐ ์ด ํ์ฅ ๊ธฐ๋ฅ์ ๋ฐ์ดํฐ ์์ง์ด ํ์ํ์ง ์๋ค๊ณ ํฉ๋๋ค.
์ถ๊ฐ ์ ๋ณด
- ๋ถ๊ฐ ๊ธฐ๋ฅ ๋งํฌ
- ๋ฒ์
- 1.0.0
- ํฌ๊ธฐ
- 18.86 KB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 10์ผ ์ (2026๋ 3์ 19์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- MIT ๋ผ์ด์ ์ค
- ๋ฒ์ ๋ชฉ๋ก
- ๋ชจ์์ง์ ์ถ๊ฐ