Skip to content

fix: improve markdown rendering in the chat panel#49

Open
Dong1017 wants to merge 6 commits intovigo999:refactor-arch-4.31from
Dong1017:refactor-arch-4.31_feat_markdown_render
Open

fix: improve markdown rendering in the chat panel#49
Dong1017 wants to merge 6 commits intovigo999:refactor-arch-4.31from
Dong1017:refactor-arch-4.31_feat_markdown_render

Conversation

@Dong1017
Copy link
Copy Markdown
Collaborator

Summary

  • improve markdown rendering in the chat panel so narrow layouts remain more readable and closer to Claude Code terminal output
  • wrap paragraphs, bullet/task/ordered lists, block quotes, and horizontal rules based on the available message width while preserving prefixes and continuation alignment
  • wrap long fenced code block lines to the code block width instead of truncating them
  • keep the existing box-table rendering behavior and do not add syntax highlighting in this change

Validation

  • ran go test ./ui/panels/...
  • verified long paragraphs wrap correctly in a narrow chat panel
  • verified bullet, task, and ordered lists preserve prefixes and continuation indentation after wrapping
  • verified block quotes remain aligned and fenced code blocks wrap long lines instead of truncating them

Example

image

Dong1017 and others added 6 commits March 30, 2026 15:09
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Align chat markdown rendering more closely with Claude Code by wrapping paragraphs, lists, quotes, rules, and code blocks to the available width instead of truncating or using fixed widths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Dong1017 Dong1017 changed the title Refactor arch 4.31 feat markdown render fix: improve markdown rendering in the chat panel Mar 30, 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