[PR #694] feat(markdown): render list items as nested containers #719

Open
opened 2026-03-02 23:47:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/694
Author: @remorses
Created: 2/16/2026
Status: 🔄 Open

Base: mainHead: feat/markdown-list-containers


📝 Commits (5)

  • 8e097d7 refactor(markdown): extract createBlockRenderable and fix margin consistency
  • 7cf9b47 fix: render space tokens as TextRenderable in createBlockRenderable
  • 1c283fa feat(markdown): render list items as nested containers
  • 3c29862 test(markdown): add integration tests for combined list+blockquote rendering
  • 3c31ab1 Merge branch 'main' into feat/markdown-list-containers

📊 Changes

2 files changed (+400 additions, -53 deletions)

View changed files

📝 packages/core/src/renderables/Markdown.ts (+144 -51)
📝 packages/core/src/renderables/__tests__/Markdown.test.ts (+256 -2)

📄 Description

Split from #597 to make review easier. Depends on #692.

Replaces flat text chunk list rendering with BoxRenderable containers. Each list item gets its own box, with the first inline text on the marker line and remaining child tokens (nested lists, code blocks) as indented children. Supports nested lists, task checkboxes, and code blocks inside list items.


🔄 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/694 **Author:** [@remorses](https://github.com/remorses) **Created:** 2/16/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/markdown-list-containers` --- ### 📝 Commits (5) - [`8e097d7`](https://github.com/anomalyco/opentui/commit/8e097d71d808fb2c8664a6556d4dcee95945d8dc) refactor(markdown): extract createBlockRenderable and fix margin consistency - [`7cf9b47`](https://github.com/anomalyco/opentui/commit/7cf9b47959b55c28e06141bfe61b6f534fe5bdb3) fix: render space tokens as TextRenderable in createBlockRenderable - [`1c283fa`](https://github.com/anomalyco/opentui/commit/1c283fa52b61ea4d979728c73a7b4604eb9cd977) feat(markdown): render list items as nested containers - [`3c29862`](https://github.com/anomalyco/opentui/commit/3c298621d8b740ba55d407b3c9234adee90baebc) test(markdown): add integration tests for combined list+blockquote rendering - [`3c31ab1`](https://github.com/anomalyco/opentui/commit/3c31ab19a9f549546122cc3e949e7bfdee42df2d) Merge branch 'main' into feat/markdown-list-containers ### 📊 Changes **2 files changed** (+400 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Markdown.ts` (+144 -51) 📝 `packages/core/src/renderables/__tests__/Markdown.test.ts` (+256 -2) </details> ### 📄 Description Split from #597 to make review easier. Depends on #692. Replaces flat text chunk list rendering with BoxRenderable containers. Each list item gets its own box, with the first inline text on the marker line and remaining child tokens (nested lists, code blocks) as indented children. Supports nested lists, task checkboxes, and code blocks inside list items. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#719
No description provided.