Skip to content

Fix: plan description card renders markdown (v0.3.29)#32

Merged
SylonZero merged 2 commits into
masterfrom
fix/plan-description-markdown
Jul 16, 2026
Merged

Fix: plan description card renders markdown (v0.3.29)#32
SylonZero merged 2 commits into
masterfrom
fix/plan-description-markdown

Conversation

@SylonZero

Copy link
Copy Markdown
Owner

What

Fixes the filed bug: since v0.3.26, plan descriptions are authored as markdown (rich text editor / MCP) but PlanDescriptionCard on the plan detail page rendered them as plain text — literal **bold** and pipe-table syntax.

  • Render via ReactMarkdown + remark-gfm with the same prose treatment as the asset content cards.
  • Collapse switches from line-clamp to max-height + overflow-hidden — line-clamp is unreliable across markdown's mixed block children (tables, code blocks). Same expander behavior and overflow detection.
  • Preview surfaces (plan cards on /plans, product-page rows) intentionally left as truncated raw text per the work item; the detail card is the primary reading surface.

Verification

Drove the plan detail page with a markdown description fixture (bold + GFM table): rendered as <strong> and <table>, no raw syntax in visible text; expander intact. Fixture reverted. 167/167 tests, tsc clean.

Resolves CodePlans work item "Plan description panel shows raw markdown instead of rendering it".

🤖 Generated with Claude Code

Sai Prakash and others added 2 commits July 16, 2026 00:50
Since v0.3.26 plan descriptions are authored as markdown (rich text
editor / MCP), but PlanDescriptionCard still rendered them as plain
text — users saw literal **bold** and pipe-table syntax. Render with
ReactMarkdown + remark-gfm using the same prose treatment as the asset
content cards.

The collapse switches from line-clamp to max-height + overflow-hidden:
line-clamp is unreliable across markdown's mixed block children
(tables, code blocks). Same expander behavior and overflow detection.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@SylonZero
SylonZero merged commit eef908b into master Jul 16, 2026
1 check passed
@SylonZero
SylonZero deleted the fix/plan-description-markdown branch July 16, 2026 04:51
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