Skip to content

fix(chat): normalize markdown list and heading spacing - #9392

Merged
waleedlatif1 merged 1 commit into
stagingfrom
codex/chat-markdown-spacing
Oct 27, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
codex/chat-markdown-spacing

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Tighten the gap between a list and its introductory paragraph, including bold section labels.
  • Restore spacing above later Markdown headings by correcting a selector that applied the first-heading exception to every heading. Keep Streamdown's existing message-edge handling.

Type of Change

  • Bug fix

Testing

  • Browser QA with the real ChatContent renderer and production CSS: 12 combinations of desktop/mobile widths, light/dark themes, and static/streaming rendering. Verified list introductions, headings (including first/later headings inside quotes), nested ordered/unordered lists, task lists, wrapping, and stable layout on settling.
  • Confirmed the paragraph/list and later-heading checks fail before their respective fixes. Paragraph/list gaps change from 18.75px to 8px; later headings regain their 24px top margin. Existing paragraph and nested-list spacing remain unchanged. Local JSON report and screenshots captured.
  • The initial full-parallel test run hit a sanitizer timing benchmark; the complete run passed with four workers and unchanged assertions.
  • ChatContent's 16 existing tests, root VITEST_MAX_WORKERS=4 bun run test, bun run lint, bun run type-check, bun run check:audits, block-registry audit, and all four ship artifact generators.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 27, 2026 1:53am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adjusts Markdown spacing in ChatContent.

  • Chat replies keep headings spaced and bring list introductions closer.

No actionable issues were found. Browser behavior was not independently verified because dependencies were not installed.

Reviews (1) · Last reviewed commit: "fix(chat): normalize markdown list and h..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 merged commit 5b85be3 into staging Oct 27, 2026
45 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/chat-markdown-spacing branch October 27, 2026 01:58

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant