claude-code - 💡(How to fix) Fix [BUG] Commands and messages rendered with unwanted bullet points / line breaks [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#46875Fetched 2026-04-12 13:30:45
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

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?

When Claude outputs plain text that should be copied into a terminal (e.g.
commit messages, shell commands, file paths), the markdown renderer
frequently adds unwanted bullet points or line breaks. This happens even when the text is not intended as a list. Code blocks help sometimes but the issue persists across many output types. Makes it very difficult to copy-paste
commands directly.

What Should Happen?

shouldn't have bloody line breaks!

Error Messages/Logs

Steps to Reproduce

  1. Ask Claude for a shell command or commit message
  2. Claude outputs the text as plain prose (not in a code block)
  3. The markdown renderer converts the first line into a bullet point
  4. Copying the text into a terminal includes the bullet character, breaking
    the command

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.98 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

No response

extent analysis

TL;DR

Wrap plain text outputs from Claude in code blocks to prevent markdown rendering issues.

Guidance

  • Identify instances where Claude outputs plain text that should be copied into a terminal and wrap them in code blocks to prevent unwanted formatting.
  • Test the workaround by asking Claude for a shell command or commit message and verifying that the output can be copied and pasted into a terminal without issues.
  • Consider reporting the regression to the developers, as this issue was not present in a previous version.
  • If the issue persists, try using a different markdown renderer or configuring the existing one to handle plain text outputs differently.

Example

`shell command or commit message`

Wrapping the output in backticks (`) can help prevent markdown rendering issues.

Notes

The provided workaround may not work for all output types, and the root cause of the issue is likely related to the markdown renderer used by Claude Code.

Recommendation

Apply workaround: wrapping plain text outputs in code blocks is a simple and effective way to mitigate the issue, and it does not require waiting for a fix or upgrade.

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