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: Long-form Markdown can opt into readable document typography, centered measure, heading scroll clearance, and grid table dividers without changing parsing. This is PR 9/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.
This introduces a new exported Markdown variant, but its only contract admission is FR29 added in the same PR. Please land the owner-approved authority decision first and rebase the implementation. Also make the block-only combination unrepresentable in TypeScript, preserve the released default-path handling of contentWidth={0} unless separately authorised, move stylex.createTheme into a .stylex.ts module, and add browser evidence for typography, geometry, scroll clearance, and grid dividers.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression2 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
Long-form Markdown can opt into readable document typography, centered measure, heading scroll clearance, and grid table dividers without changing parsing.
Problem and solution fit
The default presentation is intentionally neutral and composition-friendly, but long-form documents need a coherent reading treatment. A presentation-only variant supplies that treatment without inventing syntax or overriding explicit layout props.
Current specification
The Markdown component contract's opt-in document-presentation clause. Pinned source.
Public delta and caller burden
Add block-only
variant="document"; explicit width, alignment, density, and heading-level settings continue to win, and omission preserves released output.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: #6663 · Next: #6665 · Each PR is intentionally one commit and one primary intent.