Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4afba2f

Browse files
committed
Add support for RTL languages
1 parent 229eef4 commit 4afba2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export function bodyToHtml(content, highlights, opts) {
360360
'mx_EventTile_bigEmoji': emojiBody,
361361
'markdown-body': isHtml,
362362
});
363-
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} />;
363+
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" />;
364364
}
365365

366366
export function emojifyText(text) {

0 commit comments

Comments
 (0)