Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
03513d1 to
4a972e3
Compare
4a972e3 to
f02f06e
Compare
f02f06e to
be885f6
Compare
|
@cixzhang — I’d appreciate your feedback on this draft. Focus: Successful semantic-fence renderers keep the same Markdown block rhythm, width, alignment, edge behavior, and theme target as their CodeBlock fallback. This is PR 19/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.
The implementation now shares the correct outer wrapper, but the regression test does not prove the spacing change. Removing the spacing and first or last margin styles still leaves the class and density assertions green. Please assert the wrapper’s actual StyleX margin declarations for default and compact density, including first and last block suppression, using the existing declaration helper.
PR Analysis Report
Modified ComponentsOutline (@astryxdesign/core)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression2 of 422 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 |
be885f6 to
d1e0890
Compare
Summary: Keep Markdown’s existing code-block wrapper, density rhythm, max-width, alignment, and first/last edge handling when a semantic fence renderer replaces the ordinary CodeBlock. Keep the fallback inside that same wrapper so loading and failure do not shift layout. Test Plan: - pnpm exec vitest run packages/core/src/Markdown/plugins/semanticFence.test.tsx packages/core/src/Markdown/ansi/ansi.test.tsx packages/core/src/Markdown/mermaid/mermaid.test.tsx packages/core/src/Markdown/shiki/shiki.test.tsx --root . - pnpm --filter @astryxdesign/core typecheck
d1e0890 to
7f3eeae
Compare






User impact
Successful semantic-fence renderers keep the same Markdown block rhythm, width, alignment, edge behavior, and theme target as their CodeBlock fallback.
Problem and solution fit
The success path returned extension output directly while the loading/failure path remained inside
markdown-codeblock, so adjacent renderers could collapse together and configured block geometry disappeared after loading.Expected behavior and authority
The Markdown component contract's extension-theme and block-geometry requirements. Pinned source.
Smallest restoration
Separate fallback content from wrapper props and retain the standard Markdown code-block wrapper for both successful extension output and fallback.
Evidence
Real-browser evidence
Measured adjacent ANSI→Shiki gap: 0px before → 16px after; successful renderers retain the same wrapper as fallback.
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: #6673 · Next: #6675 · Each PR is intentionally one commit and one primary intent.