Skip to content

feat: markdown pipe tables in the repl TUI and GUI chat - #127

Merged
justrach merged 1 commit into
mainfrom
feat/markdown-pipe-tables
Jul 10, 2026
Merged

feat: markdown pipe tables in the repl TUI and GUI chat#127
justrach merged 1 commit into
mainfrom
feat/markdown-pipe-tables

Conversation

@justrach

@justrach justrach commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Renders | pipe tables in both chat surfaces (TUI first, per the harness-first rule):

  • TUI (src/repl.zig): renderMarkdown detects pipe tables and draws them with box-drawing characters, wrapping cell text to the terminal width (cached per frame; 0 assumes 100 cols).
  • GUI: table rendering extracted from MarkdownRenderer into a dedicated ChatTable component (alignment + header styling unchanged), with tests.

zig build test green; bun test ChatTable 4/4 green.

TUI (first, per harness-first rule): renderMarkdown in repl.zig now
detects | pipe tables and draws them with box-drawing characters,
wrapping cell text to fit the terminal width (width_hint cached from
the last rendered frame; 0 assumes 100 cols).

GUI: table rendering extracted from MarkdownRenderer into a dedicated
ChatTable component (alignment, header styling unchanged) with tests.

Co-Authored-By: blackfloofie <265516171+blackfloofie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant