[PR #369] [CLOSED] feat: add automatic markdown table alignment #488

Closed
opened 2026-03-02 23:46:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/369
Author: @remorses
Created: 11/30/2025
Status: Closed

Base: mainHead: format-table


📝 Commits (7)

  • aa2a84e feat: add automatic markdown table alignment using tree-sitter AST
  • 505f327 Merge branch 'main' into format-table
  • a5614d1 format: run prettier
  • f5ff1a5 refactor table formatting to use tree-sitter AST for cell parsing
  • 1321535 fix: trim trailing whitespace from each line in test snapshots
  • f5c7f0f format: run prettier
  • 37d4071 fix: increase async highlighting timeout for CI

📊 Changes

7 files changed (+1201 additions, -24 deletions)

View changed files

📝 packages/core/src/lib/tree-sitter/client.test.ts (+232 -0)
📝 packages/core/src/lib/tree-sitter/client.ts (+16 -3)
📝 packages/core/src/lib/tree-sitter/parser.worker.ts (+287 -5)
packages/core/src/lib/tree-sitter/table-formatting.test.ts (+462 -0)
📝 packages/core/src/renderables/Code.ts (+6 -3)
📝 packages/core/src/testing/mock-tree-sitter-client.ts (+13 -13)
packages/react/examples/markdown-table.tsx (+185 -0)

📄 Description

Automatically formats markdown tables by padding columns to align content when rendering. Using tree sitter AST


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/369 **Author:** [@remorses](https://github.com/remorses) **Created:** 11/30/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `format-table` --- ### 📝 Commits (7) - [`aa2a84e`](https://github.com/anomalyco/opentui/commit/aa2a84eef5bfbf432f10e32231b0087ddc416064) feat: add automatic markdown table alignment using tree-sitter AST - [`505f327`](https://github.com/anomalyco/opentui/commit/505f32723b8fbc802e3499c6dc263213c9358e2a) Merge branch 'main' into format-table - [`a5614d1`](https://github.com/anomalyco/opentui/commit/a5614d1c3c9ed716f7221439a49c15278502237a) format: run prettier - [`f5ff1a5`](https://github.com/anomalyco/opentui/commit/f5ff1a57691cd83509b01dcbde9b299de5fe106c) refactor table formatting to use tree-sitter AST for cell parsing - [`1321535`](https://github.com/anomalyco/opentui/commit/13215350ec536e9eaab9bc27342311f18e0e25b5) fix: trim trailing whitespace from each line in test snapshots - [`f5c7f0f`](https://github.com/anomalyco/opentui/commit/f5c7f0fe3e93c53edc55d12b8e02c367e9306f3d) format: run prettier - [`37d4071`](https://github.com/anomalyco/opentui/commit/37d4071019cc1411ed06b8ce27d95eb860066790) fix: increase async highlighting timeout for CI ### 📊 Changes **7 files changed** (+1201 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/lib/tree-sitter/client.test.ts` (+232 -0) 📝 `packages/core/src/lib/tree-sitter/client.ts` (+16 -3) 📝 `packages/core/src/lib/tree-sitter/parser.worker.ts` (+287 -5) ➕ `packages/core/src/lib/tree-sitter/table-formatting.test.ts` (+462 -0) 📝 `packages/core/src/renderables/Code.ts` (+6 -3) 📝 `packages/core/src/testing/mock-tree-sitter-client.ts` (+13 -13) ➕ `packages/react/examples/markdown-table.tsx` (+185 -0) </details> ### 📄 Description Automatically formats markdown tables by padding columns to align content when rendering. Using tree sitter AST --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:46:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#488
No description provided.