Skip to content

fix(Markdown): align task list layout - #6662

Closed
ernestt wants to merge 1 commit into
markdown-upgrade/06-rendered-newlinesfrom
markdown-upgrade/07-task-list-layout
Closed

ernestt wants to merge 1 commit into
markdown-upgrade/06-rendered-newlinesfrom
markdown-upgrade/07-task-list-layout

Conversation

@ernestt

@ernestt ernestt commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Task lists now follow the same prose width and alignment as ordinary ordered and unordered lists.

Problem and solution fit

The task-list rendering branch skipped Markdown's shared List block sizing/alignment styles, so centered or constrained documents produced a separate left edge. The fix routes task lists through the same block geometry.

Expected behavior and authority

The Markdown component contract's shared list-layout requirement. Pinned source.

Smallest restoration

Apply the existing List block width and alignment treatment to task lists without changing checkbox semantics or ordinary lists.

Evidence

Real-browser evidence

Task-list alignment before and after

  • Representative unchanged paths are covered by focused regression tests.
  • Mutation-sensitive proof is included with the implementation.

Scope

  • One defect is restored.
  • Separable tagalongs were removed or split into adjacent stack entries.
  • No unrelated API or visual change is hidden under the bug-fix label.
  • Public text and artifacts contain no internal context.

Testing

  • Focused: Markdown task-list width/alignment and unchanged ordinary-list rendering tests.
  • Stack head: pnpm exec vitest run packages/core/src/Markdown packages/core/src/CodeBlock — 37 files, 760 tests.
  • Stack head: pnpm --filter @astryxdesign/core typecheck.
  • Repository checks: pnpm check:repo.

Stack

Previous: #6661 · Next: #6663 · Each PR is intentionally one commit and one primary intent.

@ernestt ernestt mentioned this pull request Sep 26, 2026
4 tasks done
@vercel

vercel Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 6, 2026 7:52am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 26, 2026
@ernestt ernestt mentioned this pull request Sep 26, 2026
4 tasks done
@astracat-bot

astracat-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
📝 Draft — not reviewed automatically (for maintainers only) Oct 6, 2026, 8:41 AM UTC

@ernestt

ernestt commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@cixzhang — I’d appreciate your feedback on this draft.

Focus: Task lists now follow the same prose width and alignment as ordinary ordered and unordered lists.

This is PR 7/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 humbertovirtudes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation correctly applies the existing contentWidth and contentAlign treatment to task lists. One evidence gap blocks approval: the test compares generated class names, which does not prove the promised width and centring in a browser. Please add browser-level measurement, such as extending the existing content-alignment story with a task list.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Sep 27, 2026
@ernestt
ernestt added this pull request to stack #6700 September 28, 2026 18:02
github-actions Bot added a commit that referenced this pull request Sep 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox are not both ready on the exact-head Vercel preview. CI concluded failure.

Modified Components

Outline (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 717 -
Complexity N/A High (28) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.9KB 1.2KB

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

3 of 420 shot(s) changed. View the report

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Markdown Default probe dark 29,661
Markdown Default probe light 29,652
SideNav Resizable in AppShell probe dark 3,208
Markdown — Default — probe dark
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
Markdown — Default — probe light
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame
SideNav — Resizable in AppShell — probe dark
BeforeAfterDiff
Before visual regression frame After visual regression frame Pixel difference frame

Generated by PR Enrichment workflow | View full report

@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from f6efb16 to 2b3ae2e Compare October 5, 2026 23:30
@github-actions github-actions Bot added needs:code-review High-risk change (new package/component/API) — needs human code review before merge and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 5, 2026
@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from 2b3ae2e to 6eb2bab Compare October 5, 2026 23:38
@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from 6eb2bab to 70c32bf Compare October 6, 2026 07:38
@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from 70c32bf to 0fed0ff Compare October 6, 2026 07:45
@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from 0fed0ff to 7925d7c Compare October 6, 2026 07:46
@ernestt
ernestt force-pushed the markdown-upgrade/07-task-list-layout branch from 0fed0ff to 7925d7c Compare October 6, 2026 07:46
@ernestt ernestt closed this Oct 9, 2026
@github-actions
github-actions Bot deleted the markdown-upgrade/07-task-list-layout branch October 10, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — 7925d7cb Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:code-review High-risk change (new package/component/API) — needs human code review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants