From 5c5f08d709d2409e9b3e3284968209a793d3ad4f Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Sun, 30 Apr 2023 09:56:00 +0200 Subject: [PATCH] reorder highlighting --- src/calibre/gui2/markdown_syntax_highlighter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/markdown_syntax_highlighter.py b/src/calibre/gui2/markdown_syntax_highlighter.py index fa92f79d74..a6a28adb9b 100644 --- a/src/calibre/gui2/markdown_syntax_highlighter.py +++ b/src/calibre/gui2/markdown_syntax_highlighter.py @@ -129,16 +129,16 @@ class MarkdownHighlighter(QSyntaxHighlighter): self.highlightList(text, cursor, bf, strt) + self.highlightEmphasis(text, cursor, bf, strt) + + self.highlightBold(text, cursor, bf, strt) + self.highlightLink(text, cursor, bf, strt) self.highlightImage(text, cursor, bf, strt) self.highlightCodeSpan(text, cursor, bf, strt) - self.highlightEmphasis(text, cursor, bf, strt) - - self.highlightBold(text, cursor, bf, strt) - self.highlightCodeBlock(text, cursor, bf, strt) def highlightBlockQuote(self, text, cursor, bf, strt):