[PR #693] feat(markdown): render blockquotes as container with left border #718

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/693
Author: @remorses
Created: 2/16/2026
Status: 🔄 Open

Base: mainHead: feat/markdown-blockquote-container


📝 Commits (3)

  • 8e097d7 refactor(markdown): extract createBlockRenderable and fix margin consistency
  • 7cf9b47 fix: render space tokens as TextRenderable in createBlockRenderable
  • c1f22ec feat(markdown): render blockquotes as container with left border

📊 Changes

2 files changed (+161 additions, -35 deletions)

View changed files

📝 packages/core/src/renderables/Markdown.ts (+133 -34)
📝 packages/core/src/renderables/__tests__/Markdown.test.ts (+28 -1)

📄 Description

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

Replaces flat text chunk blockquote rendering with a BoxRenderable using border: ["left"] and customBorderChars with > as the vertical char. Content is rendered as children, so nested blocks work correctly. Fixes multi-line quotes losing the > prefix on continuation lines.


🔄 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/693 **Author:** [@remorses](https://github.com/remorses) **Created:** 2/16/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/markdown-blockquote-container` --- ### 📝 Commits (3) - [`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 - [`c1f22ec`](https://github.com/anomalyco/opentui/commit/c1f22ec166472bd8ecb3fe55561266fe013d7853) feat(markdown): render blockquotes as container with left border ### 📊 Changes **2 files changed** (+161 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/renderables/Markdown.ts` (+133 -34) 📝 `packages/core/src/renderables/__tests__/Markdown.test.ts` (+28 -1) </details> ### 📄 Description Split from #597 to make review easier. Depends on #692. Replaces flat text chunk blockquote rendering with a BoxRenderable using `border: ["left"]` and `customBorderChars` with `>` as the vertical char. Content is rendered as children, so nested blocks work correctly. Fixes multi-line quotes losing the `>` prefix on continuation lines. --- <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#718
No description provided.