Skip to content

spec: add markdown rendering specs#1476

Draft
jsell-rh wants to merge 5 commits intoambient-code:mainfrom
jsell-rh:main
Draft

spec: add markdown rendering specs#1476
jsell-rh wants to merge 5 commits intoambient-code:mainfrom
jsell-rh:main

Conversation

@jsell-rh
Copy link
Copy Markdown
Contributor

Summary

  • 012a (feat/markdown-layout-bugs): Fixes three structural bugs in message.tsxclassName="inline" wrapper collapsing block content, font-mono applied to all prose, and near-zero paragraph margin (mb-[0.2rem]). Also adds strong, em, del overrides and harmonizes list spacing. Prerequisite for 012b and 012c.
  • 012b (feat/markdown-tables): Adds GFM table rendering via six component overrides (table, thead, tbody, tr, th, td). Introduces src/lib/markdown-components.ts with a shared sharedMarkdownComponents export used by both message.tsx and tool-message.tsx. Requires moving markdownComponents in tool-message.tsx to module level.
  • 012c (feat/markdown-gfm-elements): Adds blockquote (P1), hr and img (P2), and h4h6 (P3, gated on team decision) overrides to the shared constant from 012b.

Test plan

  • 012a: npx vitest run passes; manual streaming cursor stays inline; font-mono gone from prose
  • 012b: Table borders, padding, and header background visible in light and dark mode; wide tables scroll within container; tool-result tables match bot message tables
  • 012c: Blockquote renders with left border and italic text; --- produces themed separator; wide images don't overflow

🤖 Generated with Claude Code

Three-part spec for fixing markdown rendering in message.tsx and
tool-message.tsx. Covers core layout bugs (inline wrapper, font-mono,
paragraph spacing), GFM table rendering with shared component overrides,
and remaining GFM elements (blockquote, hr, img, h4-h6).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for cheerful-kitten-f556a0 canceled.

Name Link
🔨 Latest commit 32141be
🔍 Latest deploy log https://app.netlify.com/projects/cheerful-kitten-f556a0/deploys/69f374212373af00071d933a

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 28, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: dd85c4f8-8fe5-49e1-9bc1-cbceb2068efc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

jsell-rh and others added 3 commits April 28, 2026 21:25
Replace bug-fix framing in Overview and Input sections with
desired-state descriptions of the expected rendering behavior.
Implementation details (what changes) remain in plan.md files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
012a-markdown-layout-bugs    → 012a-markdown-prose-rendering
012b-markdown-tables         → 012b-markdown-table-rendering
012c-markdown-gfm-elements   → 012c-markdown-gfm-rendering

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Accidentally included pre-existing mode changes (100644 → 100755) on
001, 010, and 011 specs in the previous rename commit. No content changed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsell-rh jsell-rh changed the title spec: add markdown rendering specs 012a, 012b, 012c spec: add markdown rendering specs Apr 28, 2026
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