Skip to content

feat(tui): render markdown tables in chat panel#754

Merged
bug-ops merged 1 commit intomainfrom
feat/tui-table-rendering
Feb 22, 2026
Merged

feat(tui): render markdown tables in chat panel#754
bug-ops merged 1 commit intomainfrom
feat/tui-table-rendering

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 22, 2026

Summary

  • Enable pulldown-cmark table parsing (ENABLE_TABLES) in TUI markdown renderer
  • Handle Table/TableHead/TableRow/TableCell events in MdRenderer::push_event()
  • Render tables with Unicode box-drawing borders (┌─┬─┐, ├─┼─┤, └─┴─┘), bold header row, auto-width columns
  • Add table_border style to Theme for consistent border coloring

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes (0 warnings)
  • cargo nextest run --workspace --lib --bins — 2480 passed, 9 skipped
  • 7 new unit tests: basic table, header bold, header-only, single column, many columns, column width alignment, empty data cells
  • Manual: run cargo run -- --tui, prompt LLM to generate a markdown table

Enable pulldown-cmark ENABLE_TABLES option and handle
Table/TableHead/TableRow/TableCell events in MdRenderer.
Tables rendered with Unicode box-drawing borders, bold header
row, and auto-width columns.
@github-actions github-actions bot added enhancement New feature or request size/L documentation Improvements or additions to documentation rust and removed enhancement New feature or request size/L labels Feb 22, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 22, 2026 22:36
@github-actions github-actions bot added enhancement New feature or request size/L labels Feb 22, 2026
@bug-ops bug-ops merged commit 9fbb90b into main Feb 22, 2026
23 checks passed
@bug-ops bug-ops deleted the feat/tui-table-rendering branch February 22, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request rust size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant