claude-code - 💡(How to fix) Fix Markdown horizontal rule (`---`) renders like a user interruption divider [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#52755Fetched 2026-04-24 10:40:26
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

When the assistant's response contains a Markdown horizontal rule (---), the rendered output is visually indistinguishable from the divider shown when a user interrupts the assistant's message ([Request interrupted by user]-style separator). This makes it ambiguous whether the assistant's output ended naturally or was cut off.

Root Cause

When the assistant's response contains a Markdown horizontal rule (---), the rendered output is visually indistinguishable from the divider shown when a user interrupts the assistant's message ([Request interrupted by user]-style separator). This makes it ambiguous whether the assistant's output ended naturally or was cut off.

RAW_BUFFERClick to expand / collapse

Summary

When the assistant's response contains a Markdown horizontal rule (---), the rendered output is visually indistinguishable from the divider shown when a user interrupts the assistant's message ([Request interrupted by user]-style separator). This makes it ambiguous whether the assistant's output ended naturally or was cut off.

Steps to Reproduce

  1. Ask Claude to produce a response that naturally uses --- as a Markdown section divider (e.g., a response with distinct summary sections).
  2. Observe the rendered separator in the terminal.

Expected

Markdown --- should render as a clearly distinct section divider that does not look like the user-interruption separator. Ideally a different style, indentation, glyph, or coloring should be used for each.

Actual

The two dividers look identical, which can mislead the reader into thinking the assistant's message was cut off mid-response.

Environment

  • OS: Windows 11 Pro (10.0.22631)
  • Shell: bash (via Git Bash / WSL-style invocation)
  • Claude Code version: 2.1.119
  • Model: claude-opus-4-7 (Opus 4.7)

Suggested Fix

Use a visually distinct style for Markdown horizontal rules vs. interruption dividers — e.g., different character ( vs ), different color, or different alignment/padding.

extent analysis

TL;DR

Use a visually distinct style for Markdown horizontal rules to differentiate them from interruption dividers.

Guidance

  • Consider using a different character, such as instead of ---, for Markdown horizontal rules to create visual distinction.
  • Apply different styling, like color or padding, to Markdown horizontal rules and interruption dividers to make them easily distinguishable.
  • Review the rendering of Markdown in the terminal to ensure consistency and clarity in the output.

Example

No specific code example is provided as this issue relates to visual rendering rather than code functionality.

Notes

The solution may depend on the capabilities of the terminal and the rendering engine used by Claude. Customization options may be limited.

Recommendation

Apply a workaround by using a different character or styling for Markdown horizontal rules, as this is a feasible and immediate solution to improve readability.

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 Markdown horizontal rule (`---`) renders like a user interruption divider [1 participants]