Skip to content

Commit b15992f

Browse files
committed
Fix Markdown Code Block Delimiter Visibility
Change the foreground color of code block tags (triple backticks) and inline backticks from keyword and string colors to the default background color, effectively hiding these delimiters while preserving the styled code content. ** Generated by CodeLite. ** Signed-off-by: Eran Ifrah <eran@codelite.org>
1 parent a4dbe39 commit b15992f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugin/MarkdownStyler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ void MarkdownStyler::InitStyles()
187187

188188
m_ctrl->StyleSetForeground(MarkdownStyles::kHorizontalLine, block_comment.GetFgColour());
189189

190-
m_ctrl->StyleSetForeground(MarkdownStyles::kCodeBlockTag, keyword.GetFgColour());
191-
m_ctrl->StyleSetForeground(MarkdownStyles::kBacktick, string.GetFgColour());
190+
m_ctrl->StyleSetForeground(MarkdownStyles::kCodeBlockTag, default_bg);
191+
m_ctrl->StyleSetForeground(MarkdownStyles::kBacktick, default_bg);
192192

193193
m_ctrl->StyleSetEOLFilled(MarkdownStyles::kCodeBlockText, true);
194194
m_ctrl->StyleSetBackground(MarkdownStyles::kCodeBlockText, code_bg);

0 commit comments

Comments
 (0)