mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #433] [MERGED] feat(core): add MarkdownRenderable with automatic table alignment #1314
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/433
Author: @remorses
Created: 12/19/2025
Status: ✅ Merged
Merged: 1/18/2026
Merged by: @kommander
Base:
main← Head:markdown-renderable📝 Commits (10+)
9e81930add MarkdownRenderable with remark-based table alignment5380957use marked34ad30cCreate markdown-demo.ts06d8d5euse marked for real13079d6Update markdown-demo.tscfd1fadrender markdown tables using flexbox columns with box borders629dfd4fix conceal toggle by including it in cache key6236321formatef97c6fremove excessive jsdoc comments and fix any cast9c5575amove markdown tests to renderables folder and add more cases, add markdown types to react and solid📊 Changes
13 files changed (+3357 additions, -4 deletions)
View changed files
📝
bun.lock(+17 -0)📝
packages/core/package.json(+1 -0)📝
packages/core/src/examples/index.ts(+20 -1)➕
packages/core/src/examples/markdown-demo.ts(+565 -0)➕
packages/core/src/renderables/Markdown.ts(+840 -0)➕
packages/core/src/renderables/__tests__/Markdown.test.ts(+1705 -0)➕
packages/core/src/renderables/__tests__/markdown-parser.test.ts(+128 -0)📝
packages/core/src/renderables/index.ts(+1 -0)➕
packages/core/src/renderables/markdown-parser.ts(+61 -0)📝
packages/react/src/components/index.ts(+2 -0)📝
packages/react/src/types/components.ts(+7 -1)📝
packages/solid/src/elements/index.ts(+2 -0)📝
packages/solid/src/types/elements.ts(+8 -2)📄 Description
MarkdownRenderablethat extendsCodeRenderablewith markdown-specific featuresmarkedto parse markdown and automatically align table columns based on content widthTables are rendered via flexbox boxes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.