opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Markdown table formatting

Open lscherrer2 opened this issue 2 weeks ago • 2 comments

Description

Markdown "renderer" in the TUI does not align columns. Rows with wider entries cause misalignment.

Plugins

No response

OpenCode version

1.0.220

Steps to reproduce

  1. Ask Claude Opus/sonnet (or any LLM) to output a markdown table where some rows have long entries, and others have short ones.
  2. Observe misalignment

Screenshot and/or share link

Image

Operating System

macOS Tahoe

Terminal

iTerm2

lscherrer2 avatar Jan 10 '26 17:01 lscherrer2

This issue might be a duplicate of existing issues. Please check:

  • #7621: When a permission string or label is long, the UI layout breaks, causing text overflow and misalignment in the interface
  • #7660: Status modal overflowing beyond the visible viewport

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 10 '26 17:01 github-actions[bot]

Tables are often poorly formatted. A formatting filter could be applied on output to format tables automatically. The filter could also adjust table width and wrap text in cells when needed.

kostrse avatar Jan 10 '26 19:01 kostrse

I'm seeing this with 1.1.14

Image

bartman avatar Jan 12 '26 14:01 bartman