[PR #597] [CLOSED] Improve markdown quotes, nested lists, code inside lists, consistent vertical spacing #1422

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/597
Author: @remorses
Created: 1/27/2026
Status: Closed

Base: mainHead: improve-markdown-lists-and-spacing


📝 Commits (10+)

  • c47d8cd fix: link-opentui-dev removes nested deps to prevent duplicates
  • 6c76248 improve lists and spacing and quotes
  • 62f7f6a Update Markdown.test.ts
  • 9686d65 Improve markdown render coverage
  • c35ad4d Format markdown snapshot updates
  • 41c75d3 Fix streaming table render
  • 94b32d4 Guard blockquote content access
  • e55deb4 Fix test recorder timestamp assertion
  • 90f4b3b Render markdown lists as containers
  • 85aa4cd Unify markdown block render paths

📊 Changes

2 files changed (+573 additions, -71 deletions)

View changed files

📝 packages/core/src/renderables/Markdown.ts (+261 -68)
📝 packages/core/src/renderables/__tests__/Markdown.test.ts (+312 -3)

📄 Description

Adding experimental support for markdown in opencode I found various issues with quotes, nested lists, inconsistent spacing between elements, code blocks inside lists. This PR fixes all of them. Also added more tests with snapshots to show how the markdown output looks like in the TUI.

  • Fix blockquote rendering by using a left-border container and keep markdown blocks from shrinking under large content.
  • Normalize list/task rendering and expand snapshots after seeing OpenCode quote/list rendering issues and spacing glitches.
  • Add a theme-switch preview snapshot to catch visual drift.

🔄 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/597 **Author:** [@remorses](https://github.com/remorses) **Created:** 1/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `improve-markdown-lists-and-spacing` --- ### 📝 Commits (10+) - [`c47d8cd`](https://github.com/anomalyco/opentui/commit/c47d8cd7e5f1e03195e20566c01e4f2340928363) fix: link-opentui-dev removes nested deps to prevent duplicates - [`6c76248`](https://github.com/anomalyco/opentui/commit/6c76248db53a7f2fa595fdaf28895fee8964e7d2) improve lists and spacing and quotes - [`62f7f6a`](https://github.com/anomalyco/opentui/commit/62f7f6a519726a7fb2f77a4aaa6eae2c6821d9aa) Update Markdown.test.ts - [`9686d65`](https://github.com/anomalyco/opentui/commit/9686d654a98c380964c4742a87f61a269c190500) Improve markdown render coverage - [`c35ad4d`](https://github.com/anomalyco/opentui/commit/c35ad4d801727ab57981f7f53ddf77358121613b) Format markdown snapshot updates - [`41c75d3`](https://github.com/anomalyco/opentui/commit/41c75d361a5f2d47859c876cec75b217e9aae01d) Fix streaming table render - [`94b32d4`](https://github.com/anomalyco/opentui/commit/94b32d40d3c7fab7a536bc13aed6296bb49db58d) Guard blockquote content access - [`e55deb4`](https://github.com/anomalyco/opentui/commit/e55deb47a979f5130010f15c7cb0ee78447965cd) Fix test recorder timestamp assertion - [`90f4b3b`](https://github.com/anomalyco/opentui/commit/90f4b3b6f1d6e6018b04fd3b22871a3a9d2b1b9b) Render markdown lists as containers - [`85aa4cd`](https://github.com/anomalyco/opentui/commit/85aa4cd00af1bee00baaf6b89f8b8756ee9b4023) Unify markdown block render paths ### 📊 Changes **2 files changed** (+573 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Markdown.ts` (+261 -68) 📝 `packages/core/src/renderables/__tests__/Markdown.test.ts` (+312 -3) </details> ### 📄 Description Adding experimental support for markdown in opencode I found various issues with quotes, nested lists, inconsistent spacing between elements, code blocks inside lists. This PR fixes all of them. Also added more tests with snapshots to show how the markdown output looks like in the TUI. - Fix blockquote rendering by using a left-border container and keep markdown blocks from shrinking under large content. - Normalize list/task rendering and expand snapshots after seeing OpenCode quote/list rendering issues and spacing glitches. - Add a theme-switch preview snapshot to catch visual drift. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:36:01 +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#1422
No description provided.