feat(mdp): markdown preview with google-docs-style PR review - #2
Open
yumafuu wants to merge 5 commits into
Open
Conversation
mdp renders GitHub-flavored markdown through the GitHub API and serves it locally. For a pull request it previews every changed markdown file and turns the page into a Google Docs-style review surface: - left sidebar with the changed files (common path prefixes trimmed) and the active file's outline nested beneath it, with scroll-spy - review comments in a right margin column, aligned to the text they reference; PR conversation comments and unanchorable threads group at the top under 行に紐づかないコメント - select text to comment on a range: the quote plus a hidden mdp:range marker go into the comment body, so mdp can re-highlight the exact range later while GitHub still shows a normal line comment - reply by clicking a card, resolve with the blue check, and react with GitHub's eight emoji - mermaid blocks rendered as diagrams, light/dark themes, font-size cycle Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mdprenders GitHub-flavored markdown through the GitHub API and serves it locally. For a pull request it previews every changed markdown file and turns the page into a Google Docs-style review surface.What it does
<!-- mdp:range ... -->marker, so mdp re-highlights the exact range on the next launch while GitHub still shows an ordinary line comment. Selections outside the diff fall back to a PR comment.Verification
bun test— 152 passing;tsc --noEmitclean. Exercised end to end against real PRs: rendering, range posting (inline and PR-comment fallback), reply, resolve, reactions, and re-highlighting after restart.Review note
Design docs for each iteration are under
docs/superpowers/. This PR is also a convenient way to dogfood the tool:mdp <this PR url>.🤖 Generated with Claude Code