From 8ed78b807c944a5c2ec5fbdc0552f530179b0cfe Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 6 Dec 2022 14:09:53 +0200 Subject: [PATCH] set mentionHighlightBg background for mention keywords (#6834) --- app/components/markdown/markdown.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/markdown/markdown.tsx b/app/components/markdown/markdown.tsx index 75d777457..84f60b2e3 100644 --- a/app/components/markdown/markdown.tsx +++ b/app/components/markdown/markdown.tsx @@ -488,6 +488,10 @@ const Markdown = ({ styles = computeTextStyle(textStyles, baseTextStyle, context); } + if (context.includes('mention_highlight')) { + styles = concatStyles(styles, {backgroundColor: theme.mentionHighlightBg}); + } + return (