From c4eef71a83d4f4f1087ffcd315ae04d6405dea0a Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 9 Apr 2021 04:14:35 -0400 Subject: [PATCH] Fix inline >quote regex for quotes after a Example, if a room list item subtitle was ">a \n >b", only ">a" was wrapped with the "quote" class and colored appropriatly due to being wrapped in a and the regex failing on that --- src/backend/html_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index 5a0ed51d..ecdb303c 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -180,7 +180,7 @@ class HTMLProcessor: r"https?://matrix.to/#/[!#]\S+/\$\S+", re.IGNORECASE, ) - inline_quote_regex = re.compile(r"(^|⏎)(\s*>[^⏎\n]*)", re.MULTILINE) + inline_quote_regex = re.compile(r"(^|⏎|>)(\s*>[^⏎\n]*)", re.MULTILINE) quote_regex = re.compile( r"(^||

|
|)"