style: use RTL attribute instead of css

This commit is contained in:
Joshua Shoemaker 2023-03-28 12:16:19 -05:00
parent af4e123739
commit c60ad1e4da

View File

@ -26,7 +26,7 @@ const htmlWrappers = [
const getHtmlWrappedText = (text: string, htmlWrapper: (typeof htmlWrappers)[number]) => {
if (htmlWrapper === MarkdownOperator.RIGHTALIGN) {
return `<span style="text-align:right">\n\n${text}\n\n</span>\n`
return `<span dir="rtl">\n\n${text}\n\n</span>\n`
}
}