fix classes used for body spans, and only apply markdown-body to markdown(!)
This commit is contained in:
parent
ca5987bf6c
commit
41bff38713
1 changed files with 4 additions and 2 deletions
|
@ -223,8 +223,10 @@ module.exports = {
|
|||
let match = EMOJI_REGEX.exec(contentBodyTrimmed);
|
||||
let emojiBody = match && match[0] && match[0].length === contentBodyTrimmed.length;
|
||||
|
||||
let className = classNames('markdown-body', {
|
||||
'emoji-body': emojiBody,
|
||||
const className = classNames({
|
||||
'mx_EventTile_body': true,
|
||||
'mx_EventTile_bigEmoji': emojiBody,
|
||||
'markdown-body': isHtml,
|
||||
});
|
||||
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} />;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue