[PR #708] [CLOSED] fix(markdown): render checkbox inline with list item text #1510

Closed
opened 2026-03-14 09:40:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/708
Author: @mocksoul
Created: 2/19/2026
Status: Closed

Base: mainHead: fix/markdown-checkbox-rendering


📝 Commits (1)

  • 17ebde9 fix(markdown): render checkbox inline with list item text

📊 Changes

1 file changed (+12 additions, -3 deletions)

View changed files

📝 packages/core/src/renderables/Markdown.ts (+12 -3)

📄 Description

The marked lexer emits a checkbox token as the first child of a task list item. The renderer did not handle this token type, so it fell through to renderTokenToChunks() which rendered it as raw text on a separate line:

- [ ]
Task text here

Now the checkbox token is consumed first and rendered inline before the item text:

- [ ] Task text here

🔄 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/708 **Author:** [@mocksoul](https://github.com/mocksoul) **Created:** 2/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/markdown-checkbox-rendering` --- ### 📝 Commits (1) - [`17ebde9`](https://github.com/anomalyco/opentui/commit/17ebde9bfce0b269cb0ba8ac60cd55bd2ac665ce) fix(markdown): render checkbox inline with list item text ### 📊 Changes **1 file changed** (+12 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Markdown.ts` (+12 -3) </details> ### 📄 Description The marked lexer emits a `checkbox` token as the first child of a task list item. The renderer did not handle this token type, so it fell through to `renderTokenToChunks()` which rendered it as raw text on a separate line: ``` - [ ] Task text here ``` Now the checkbox token is consumed first and rendered inline before the item text: ``` - [ ] Task text here ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:40:36 +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#1510
No description provided.