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:
@@ -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
|
||||
|
||||
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user