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