I'm editting my GitHub readme and I need to add text in two different alignments. Part of the readme is in English and should be left to right and another part is in a different language (Persian, in my case) which has a right to left alignment. Since GitHub editor does not have any setting to change the text alignment, I wonder if there's any other way to do this?
I've already tried HTML tags like <div dir="rtl">متن فارسی</div>
to change the alignment but it doesn't work.
Edit
After getting feedback from @Quentin, I realized that the problem was that when you go to the Preview
tab, you cannot see the changes, however, once you Commit
, changes will be applied. So, <div dir="rtl">متن فارسی</div>
does work, the only thing is that you will see changes after the commit, not in preview tab.