Fix quotes rendering in inline filtered html
Before: a >x b >z This message would have been shown all gray in the client due to it not beginning with a >. Now, the colors are properly shown for both quotes and the non-quote text in between.
This commit is contained in:
@@ -80,7 +80,7 @@ HTileDelegate {
|
||||
) + ": " + ev.inline_content
|
||||
|
||||
return text.replace(
|
||||
/< *span +class=['"]?quote['"]? *>(.+)<\/ *span *>/g,
|
||||
/< *span +class=['"]?quote['"]? *>(.+?)<\/ *span *>/g,
|
||||
'<font color="' +
|
||||
theme.sidePane.room.subtitleQuote +
|
||||
'">$1</font>',
|
||||
|
Reference in New Issue
Block a user