From ab4dfd8d1bf47de62292fca3f317204a0ff65c7c Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 23 May 2019 10:22:30 +0100 Subject: [PATCH] Use the correct line-height for bold emoji This avoids marking messages detected as big emoji with `markdown-body` so that they get the correct line-height. Fixes https://github.com/vector-im/riot-web/issues/9808 --- src/HtmlUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index d06c31682d..a8bbce10dc 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -469,7 +469,7 @@ export function bodyToHtml(content, highlights, opts={}) { const className = classNames({ 'mx_EventTile_body': true, 'mx_EventTile_bigEmoji': emojiBody, - 'markdown-body': isHtmlMessage, + 'markdown-body': isHtmlMessage && !emojiBody, }); return isDisplayedWithHtml ?