Skip to content

Markdown links in table cells break due to line wrapping #3204

@TWiStErRob

Description

@TWiStErRob

Bug

Markdown links [text](url) inside table cells are rendered with a line break between [text]( and url), breaking the link.

Repro

Prompt:

render this table exactly as-is in markdown:

| Name | Link |
|------|------|
| Google | [click](https://google.com) |
| GitHub | [click](https://github.com) |

Expected

Links render as clickable inline text.

Actual

The table renderer wraps cell content at a fixed column width, splitting the markdown link syntax across lines:

| Name   | Link                        |
|--------|-----------------------------|
| Google | [click](                    |
|        | https://google.com)         |

The (url) portion wraps to the next line, breaking the link.

Image

Suggestion

The table cell content wrapper should treat [text](url) as an atomic unit and not break inside it. Alternatively, render the link as a clickable terminal hyperlink (OSC 8) before applying column wrapping.

Environment

  • Copilot CLI version: 1.0.43
  • Terminal: macOS iTerm2
  • Shell: zsh

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