Skip to content

Markdown renderer: two em-dashes (or content containing two em-dashes) triggers strikethrough #3920

Description

@dfrysinger
Image

Summary

When agent output contains two em-dashes () in close proximity, the CLI's markdown renderer treats the span between them as strikethrough, even though the LLM did not intend strikethrough formatting.

Repro

Have the agent produce a line like:

The quick — brown — fox jumps over the lazy dog.

Observed: brown (and surrounding text) is rendered with a strikethrough.
Expected: em-dashes render literally; no strikethrough.

Likely cause

The markdown parser is probably treating as a delimiter for some inline syntax it shouldn't be (cousin of #1936 where single-tilde was being treated as strikethrough).

Related

Why this matters

Em-dashes are extremely common in natural-language LLM output. Spurious strikethrough makes legitimate text look retracted or wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions