From 59ef2004e19594b7c645fc25b9f85aa20c6493d8 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 9 Apr 2021 04:42:25 -0400 Subject: [PATCH] Fix reply starting with a >quote not being colored For a message that was a reply to another, and that that started with a "> ..." quote, the quote wasn't getting highlighted due to regex not accounting for cases where one is preceded by a closing tag. --- src/backend/html_markdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index ecdb303c..13ccd824 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -183,9 +183,9 @@ class HTMLProcessor: inline_quote_regex = re.compile(r"(^|⏎|>)(\s*>[^⏎\n]*)", re.MULTILINE) quote_regex = re.compile( - r"(^||

|
|)" + r"(^||

|
||)" r"(\s*>.*?)" - r"(||
||$)", + r"(||
||
|$)", re.MULTILINE, )