claude-code - 💡(How to fix) Fix [BUG] Cursor: markdown tables render at a different width than surrounding text in the same response (longstanding) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60452Fetched 2026-05-20 03:58:13
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

In the Cursor Claude Code panel, markdown tables in assistant output are rendered at a different (wider) width than the surrounding text in the same response. Plain text and reformatted bullet lists wrap to the panel's narrow width, while some tables break out and render across a much wider area. The result is that whichever format is wrong looks unreadable next to the other.

This has been broken for as long as we've been using Claude Code. It is not a recent regression.

Error Message

Error Messages/Logs

Root Cause

In the Cursor Claude Code panel, markdown tables in assistant output are rendered at a different (wider) width than the surrounding text in the same response. Plain text and reformatted bullet lists wrap to the panel's narrow width, while some tables break out and render across a much wider area. The result is that whichever format is wrong looks unreadable next to the other.

This has been broken for as long as we've been using Claude Code. It is not a recent regression.

Code Example

# Markdown tables render at a different width than surrounding text (Cursor, longstanding)

## Summary
In the Cursor Claude Code panel, markdown tables in assistant output
are rendered at a different (wider) width than the surrounding text in
the same response. Plain text and reformatted bullet lists wrap to the
panel's narrow width, while some tables break out and render across
a much wider area. The result is that whichever format is wrong looks
unreadable next to the other.

**This has been broken for as long as we've been using Claude Code.
It is not a recent regression.**

## Environment
- **Host: Cursor** (Claude Code running inside the Cursor IDE side panel)
- Platform: macOS (Darwin 25.3.0)
- Shell: zsh
- Model: Opus 4.7 (1M context)

## Steps to reproduce
1. In Cursor, open the Claude Code panel at a typical sidebar width.
2. Ask Claude Code to produce a long response that mixes wrapped
   paragraphs / bullet lists with markdown tables.
3. Observe that the tables and the surrounding text are rendered at
   different widths within the same response.

## Expected
All content in a single response — paragraphs, lists, and tables alike
— should respect the same available width and wrap consistently.

## Actual
See attached screenshot. In a single response:

- The top portion (reformatted bullet/flat-list entries: `Ticket:`,
  `Summary:`, `Status:`, `Reason:`) wraps to roughly 30 characters per
  line — the panel's apparent width.
- The bottom portion (a 2-row markdown table with 5 columns) renders
  across what looks like the full editor width, far beyond the panel
  the text was wrapped to.

The two sections come from the same assistant message, but each is
clearly being laid out against a different width budget.

## Impact
Structured output (audits, comparisons, reports) is constantly
unreadable in Cursor. The user ends up asking the assistant to
re-format content as flat lists or HTML files just to read it, which
defeats the purpose of markdown tables.

## Notes
- Window was expanded before the screenshot.
- Reproducible across many sessions over a long period — longstanding
  bug in the Cursor environment, not a one-off.
- Screenshot shows both behaviours in the same response for direct
  comparison.

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

# Markdown tables render at a different width than surrounding text (Cursor, longstanding)

## Summary
In the Cursor Claude Code panel, markdown tables in assistant output
are rendered at a different (wider) width than the surrounding text in
the same response. Plain text and reformatted bullet lists wrap to the
panel's narrow width, while some tables break out and render across
a much wider area. The result is that whichever format is wrong looks
unreadable next to the other.

**This has been broken for as long as we've been using Claude Code.
It is not a recent regression.**

## Environment
- **Host: Cursor** (Claude Code running inside the Cursor IDE side panel)
- Platform: macOS (Darwin 25.3.0)
- Shell: zsh
- Model: Opus 4.7 (1M context)

## Steps to reproduce
1. In Cursor, open the Claude Code panel at a typical sidebar width.
2. Ask Claude Code to produce a long response that mixes wrapped
   paragraphs / bullet lists with markdown tables.
3. Observe that the tables and the surrounding text are rendered at
   different widths within the same response.

## Expected
All content in a single response — paragraphs, lists, and tables alike
— should respect the same available width and wrap consistently.

## Actual
See attached screenshot. In a single response:

- The top portion (reformatted bullet/flat-list entries: `Ticket:`,
  `Summary:`, `Status:`, `Reason:`) wraps to roughly 30 characters per
  line — the panel's apparent width.
- The bottom portion (a 2-row markdown table with 5 columns) renders
  across what looks like the full editor width, far beyond the panel
  the text was wrapped to.

The two sections come from the same assistant message, but each is
clearly being laid out against a different width budget.

## Impact
Structured output (audits, comparisons, reports) is constantly
unreadable in Cursor. The user ends up asking the assistant to
re-format content as flat lists or HTML files just to read it, which
defeats the purpose of markdown tables.

## Notes
- Window was expanded before the screenshot.
- Reproducible across many sessions over a long period — longstanding
  bug in the Cursor environment, not a one-off.
- Screenshot shows both behaviours in the same response for direct
  comparison.
<img width="975" height="443" alt="Image" src="https://github.com/user-attachments/assets/07d552ce-d16e-4edb-b329-4bd035979340" />

What Should Happen?

All content in a single assistant response — paragraphs, bullet lists, and markdown tables — should respect the same available width and wrap consistently to the Claude Code panel.

Error Messages/Logs

Steps to Reproduce

  1. Open Cursor and open multiple Claude Code panels at a typical sidebar width.
  2. Ask Claude Code to produce a long response that mixes wrapped paragraphs or bullet lists with markdown tables.
  3. Leave the panel and let another one take the focus - thus auto expanding it's width
  4. Get back to the original panel, and observe that the tables and the surrounding text in the same response are laid out against different width budgets.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.144

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Cursor

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Cursor: markdown tables render at a different width than surrounding text in the same response (longstanding) [1 participants]