claude-code - 💡(How to fix) Fix Inline-code blue color bleeds into first word of next table cell [1 comments, 2 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#49654Fetched 2026-04-17 08:35:03
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

In markdown tables rendered by Claude Code's terminal, the inline-code blue color (normally applied to text wrapped in backticks) appears to leak into the first word of an adjacent cell when the previous cell contains multiple ALL-CAPS / slash-separated technical terms without backticks.

Root Cause

In markdown tables rendered by Claude Code's terminal, the inline-code blue color (normally applied to text wrapped in backticks) appears to leak into the first word of an adjacent cell when the previous cell contains multiple ALL-CAPS / slash-separated technical terms without backticks.

Fix Action

Fix / Workaround

  • The bug only triggers on rows where the previous cell contains many auto-highlighted technical terms.
  • Cells with backtick-wrapped terms (e.g. `example-{version}`) do not cause the leak — only un-backticked terms that the renderer apparently auto-detects.
  • Wrapping 자동 explicitly in backticks is a workaround but shouldn't be necessary.

Code Example

| Step | Description | Mode |
| --- | --- | --- |
| `Step 0: Precheck` | git CLI / git repo / Jira MCP / gh CLI / Confluence MCP 확인. 하나라도 실패 시 중단 | 🟢 자동 |
| `User Input` | Version (x.y.z), schedule | 🔵 수동 |
| `Step 1-0` | `example-{version}` Jira 버전 존재 확인 | 🟢 자동 + 🔵 수동 대기 |
RAW_BUFFERClick to expand / collapse

Summary

In markdown tables rendered by Claude Code's terminal, the inline-code blue color (normally applied to text wrapped in backticks) appears to leak into the first word of an adjacent cell when the previous cell contains multiple ALL-CAPS / slash-separated technical terms without backticks.

Environment

  • Claude Code: 2.1.112
  • OS: macOS 26.3.1 (darwin)
  • Terminal: WezTerm

Reproduction

Render this markdown table in Claude Code chat:

| Step | Description | Mode |
| --- | --- | --- |
| `Step 0: Precheck` | git CLI / git repo / Jira MCP / gh CLI / Confluence MCP 확인. 하나라도 실패 시 중단 | 🟢 자동 |
| `User Input` | Version (x.y.z), schedule | 🔵 수동 |
| `Step 1-0` | `example-{version}` Jira 버전 존재 확인 | 🟢 자동 + 🔵 수동 대기 |
<img width="1268" height="426" alt="Image" src="https://github.com/user-attachments/assets/c2e52ee9-2c46-4632-916c-21e0772326f0" />

Expected Behavior

The word 자동 (Korean for "auto") in the 3rd column of row 1 has no backticks in the source and should render in the default text color (same as 수동 in row 2 and other rows).

Actual Behavior

In row 1, the 3rd cell's first word 자동 is rendered in the same blue/purple color that inline-code (backtick-wrapped) text uses. Every other 자동 / 수동 in the table renders in the default color as expected. The renderer appears to auto-highlight terms like git CLI, Jira MCP, gh CLI, Confluence MCP in the middle cell even without backticks, and that inline-code styling state seems to leak past the cell boundary into the start of the next cell.

(Screenshots will be attached in a follow-up comment.)

Additional Notes

  • The bug only triggers on rows where the previous cell contains many auto-highlighted technical terms.
  • Cells with backtick-wrapped terms (e.g. `example-{version}`) do not cause the leak — only un-backticked terms that the renderer apparently auto-detects.
  • Wrapping 자동 explicitly in backticks is a workaround but shouldn't be necessary.

Related Issues

  • #17892 (Text styling progressively misaligned in multi-line responses) — same bug family (ANSI style state tracking failure) but different trigger: progressive drift across wrapped lines on Windows vs. our one-shot cell-boundary leak on macOS/WezTerm
  • #25346 (ANSI color bleed on Windows Terminal) — similar mechanism but different context
  • #13438 (CJK table misalignment)
  • #14763 (table rendering broken in v2.0.73)

extent analysis

TL;DR

The issue can be worked around by explicitly wrapping the affected text in backticks or by improving the renderer's ANSI style state tracking.

Guidance

  • Verify that the issue only occurs when the previous cell contains multiple auto-highlighted technical terms without backticks.
  • Check if the issue is specific to the WezTerm terminal on macOS or if it also occurs on other terminals and operating systems.
  • Consider improving the renderer's handling of ANSI style states to prevent the color leak, potentially by resetting the style state at cell boundaries.
  • As a temporary workaround, explicitly wrap the affected text (e.g., 자동) in backticks to prevent the color leak.

Example

No code snippet is provided as the issue is related to the rendering of markdown tables in a specific terminal.

Notes

The issue appears to be related to the renderer's handling of ANSI style states and auto-highlighting of technical terms. The fact that wrapping the affected text in backticks is a workaround suggests that the renderer is not properly resetting its style state at cell boundaries.

Recommendation

Apply workaround: explicitly wrap the affected text in backticks until a proper fix for the renderer's ANSI style state tracking is implemented. This will prevent the color leak and ensure proper rendering of the markdown table.

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 Inline-code blue color bleeds into first word of next table cell [1 comments, 2 participants]