Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
@cixzhang — I’d appreciate your feedback on this draft. Focus: Markdown image titles now reach both the default This is PR 2/20 in the linked Markdown stack. It is intentionally one commit and one primary intent; the description includes matched before/after screenshots and previous/next links, so you can review just this PR’s delta. |
humbertovirtudes
left a comment
There was a problem hiding this comment.
Three issues block approval. The image-resource scans repeatedly call a backwards-looking isEscaped(), making long backslash runs quadratic; track escape parity during each forward scan. Streaming also treats a title-closing parenthesis as the image close, which can expose raw Markdown before the final character. Finally, the rendering test covers only a standalone image, so please add inline native and custom-renderer title coverage plus character-by-character streaming cases.
PR Analysis Report
No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression1 of 420 shot(s) changed. View the report A change here is a question, not a failure: check whether the after is the
Generated by PR Enrichment workflow | View full report |



User need
Markdown image titles now reach both the default
<img>output and custom image renderers across inline, reference, transformed, and streamed documents.Problem and solution fit
The parser reduced link definitions and inline destinations to URLs, discarding optional image-title metadata before rendering. Preserving the title in the canonical AST closes that loss without changing URL safety or default images without titles.
Current specification
The Markdown canonical-AST and renderer replacement contracts in the component contract and AST-036. Pinned source.
Public delta and caller burden
Add optional image-title data through parser, AST, plugin, Remark, public-type, renderer, and streaming projections. Existing title-free images remain unchanged.
Design and alternatives
The capability is explicit and opt-in where it changes syntax, rendering, or package weight. Existing defaults and replacement seams remain compatible; broader alternatives stay outside this PR.
Evidence
Real-browser evidence
Focused behavior and compatibility coverage ships with the implementation.
Scope
Testing
pnpm exec vitest run packages/core/src/Markdown packages/core/src/CodeBlock— 37 files, 760 tests.pnpm --filter @astryxdesign/core typecheck.pnpm check:repo.Stack
Previous: #6656 · Next: #6658 · Each PR is intentionally one commit and one primary intent.