Fix inline >quote regex for quotes after a <tag>
Example, if a room list item subtitle was ">a \n >b", only ">a" was wrapped with the "quote" class and colored appropriatly due to <a> being wrapped in a <span> and the regex failing on that
This commit is contained in:
		| @@ -180,7 +180,7 @@ class HTMLProcessor: | |||||||
|         r"https?://matrix.to/#/[!#]\S+/\$\S+", re.IGNORECASE, |         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( |     quote_regex = re.compile( | ||||||
|         r"(^|<span/?>|<p/?>|<br/?>|<h\d/?>)" |         r"(^|<span/?>|<p/?>|<br/?>|<h\d/?>)" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	