From 4c7df25d039552a009fc34c96588d22960c20e36 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 23 Mar 2026 22:53:24 +0100 Subject: [PATCH] fix(tui): restore blockquote styling after inline links The quoteInlineStyleContext used an empty stylePrefix, so after inline elements (links, bold, code) closed their ANSI codes inside a blockquote, the quote color was not re-applied. Text following a link rendered in default foreground instead of the quote theme color. --- packages/tui/CHANGELOG.md | 4 ++++ packages/tui/src/components/markdown.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index 2cc0a822..c3bfddae 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed blockquote text color breaking after inline links (and other inline elements) due to missing style restoration prefix + ## [0.62.0] - 2026-03-23 ### Fixed diff --git a/packages/tui/src/components/markdown.ts b/packages/tui/src/components/markdown.ts index f956fbf0..a19387d6 100644 --- a/packages/tui/src/components/markdown.ts +++ b/packages/tui/src/components/markdown.ts @@ -362,7 +362,7 @@ export class Markdown implements Component { // Default message style should not apply inside blockquotes. const quoteInlineStyleContext: InlineStyleContext = { applyText: (text: string) => text, - stylePrefix: "", + stylePrefix: quoteStylePrefix, }; const quoteTokens = token.tokens || []; const renderedQuoteLines: string[] = [];