[#188] Add illustration upload validation and preview sanitizer#190
Merged
Conversation
- Custom rehype-sanitize schema matching plotlink.xyz (img with src, alt, title) so Preview renders illustrations accurately. - Pre-publish validation: scans for markdown image refs, warns on non-IPFS URLs and malformed markdown. - Confirmation dialog before publishing content with illustrations, warning that content is immutable after publish. - Updated generated CLAUDE.md with illustration workflow and immutability warning. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only append ellipsis when URL exceeds 60 chars. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
approved these changes
May 14, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The PR adds the expected pre-publish image-reference warnings, publish confirmation for plots containing illustration markdown, Preview sanitizer support for img src/alt/title, and generated CLAUDE.md guidance with the immutability warning.
Findings
- No blocking findings.
Decision
Approved. CI lint-and-typecheck is passing, and the implementation satisfies issue #188 acceptance criteria within the locally reviewable scope.
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.
Summary
rehype-sanitizeschema matching plotlink.xyz — allowsimgwithsrc,alt,titleso Preview renders illustrations accuratelymarkdown patterns, warns on non-IPFS URLs and malformed markdown~/.plotlink-ows/CLAUDE.mdwith illustration workflow and immutability warningFixes #188
Test plan
images (previously blocked by sanitizer)~/.plotlink-ows/CLAUDE.mdincludes illustration workflow docs🤖 Generated with Claude Code