Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix element-hq/element-web#6523 Emoji rendering destroys paragraphs
This regression was probably introduced in 4f4441f and is caused by the fact that the variable `isHtml` conflates two different meanings: - The event contains an HTML message - The event message is displayed using HTML This is an important difference. Plain text messages that contain emojies are rendered with an HTML string and thus have to be sanitized etc. But they must not use the MarkDown CSS styles for HTML messages. The MarkDown CSS styles include `whitespace: normal` because HTML events use `<br/>`-tags for line breaks. Plain text messages with emojies obviously don't use `<br/>`-tags, so these styles must not be applied. Signed-off-by: Jonas Schürmann <[email protected]>
- Loading branch information