Repository navigation
report --markdown: --base-url for absolute image links - #111
Merged
Merged
Conversation
Image links become <url>/<shot>, so the out dir can be uploaded anywhere and the tables render in a PR description. docs/output.md gains a Cloudflare Pages and a reports-repo recipe. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 30, 2026
Merged
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.
Part of #104: items 1 and 3.
Change
renderdiff report <out> --markdown <file> --base-url <url>: the image links in the markdown become<url>/<shot>instead of paths relative to the Markdown file. Trailing slashes on the URL are dropped. There is no URL validation, andreport.htmlis unchanged.--base-urlwithout--markdownexits 2.--help(usage line, error usage, report paragraph), README, and the skill mention the flag.docs/output.md#markdown: a Cloudflare Pages recipe and a separate-reports-repo recipe.github.com/<repo>/raw/main/...links render for signed-in viewers with read access. Don't copy?token=raw URLs, which expire.Deferred
renderdiff publishand the action'spublish-repoinput are not in this PR. Both push to an outside repo using the user's credentials, and the documented clone/copy/push recipe plus--base-urlalready covers the flow. Add them if the one-command flow is asked for.Verification
npm run typecheck,npm run lint,npm run format:check: cleannpm test: 362 pass. New tests check absolute links with a trailing slash and an out dir with a space in it, with no path leaking into the link, and that--base-urlwithout--markdownexits 2.npm run test:visual: 392 pass🤖 Generated with Claude Code