[PR #5939] feat: add markdown table formatting in TUI #11656

Closed
opened 2026-02-16 18:16:33 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5939

State: closed
Merged: No


Summary

  • Created markdown-table.ts util to parse and format tables
  • Added marked dependency for markdown parsing in root repo (not sure about this decision as I've seen marked in used in both desktop and web version but not in TUI)
  • I believe there are multiple ways to properly render tables see below

Purpose

Other markdown formats are properly rendered in TUI but tables are rendered in raw markdown format
I am not sure if this should be done in opentui core package or not but I have thought of doing it within this repo only

opencode --version
1.0.185

Sceenshots

Before
image
image

After
image
image

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5939 **State:** closed **Merged:** No --- ### Summary - Created `markdown-table.ts` util to parse and format tables - Added `marked` dependency for markdown parsing in root repo (not sure about this decision as I've seen marked in used in both desktop and web version but not in TUI) - I believe there are multiple ways to properly render tables see below ### Purpose Other markdown formats are properly rendered in TUI but tables are rendered in raw markdown format I am not sure if this should be done in opentui core package or not but I have thought of doing it within this repo only ``` opencode --version 1.0.185 ``` ### Sceenshots Before <img width="1470" height="814" alt="image" src="https://github.com/user-attachments/assets/b11dfa36-2099-4567-9815-6c3138abb627" /> <img width="1470" height="761" alt="image" src="https://github.com/user-attachments/assets/5530d560-0d18-44fa-bb2a-cfcda350ed62" /> After <img width="1470" height="820" alt="image" src="https://github.com/user-attachments/assets/b4bd8893-1155-43b7-a1c5-16bfef9f3d61" /> <img width="1470" height="761" alt="image" src="https://github.com/user-attachments/assets/8ed0ce92-a917-4233-987a-0a1f7cea06cf" />
yindo added the pull-request label 2026-02-16 18:16:33 -05:00
yindo closed this issue 2026-02-16 18:16:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11656