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.
This commit is contained in:
Mario Zechner
2026-03-23 22:53:24 +01:00
parent 05c17cfbfe
commit 4c7df25d03
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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[] = [];