Skip to content

Instantly share code, notes, and snippets.

@yaseralnajjar
Last active September 29, 2021 10:53
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaseralnajjar/7f27fa055ea3fa9d5b5a50949b0006bd to your computer and use it in GitHub Desktop.
Save yaseralnajjar/7f27fa055ea3fa9d5b5a50949b0006bd to your computer and use it in GitHub Desktop.
GitHub Markdown Example RTL - Right to Left

GitHub Markdown Example RTL - Right to Left

This is an RTL (Right to Left) exmaple for GitHub:

أهلا وسهلاً 👋

How to do it?

Simply use the dir attribute in HTML with any tag <p> or <h1> like this:

<p dir="rtl">
أهلا وسهلاً 👋
</p>
@AhmedElTabarani
Copy link

Thank you very much <3

@W2AlharbiMe
Copy link

Thanks a lot,
i have used div tag instead of p tag i got some issues tbh and div tag just solved the issues with the dir attribute

exmaple:

<div dir="rtl">
مرحبا
بكم
</div>

@mohsenkamini
Copy link

thanks for that,
but what would you do when for example you would like to use these "~~~" to make a block. when using that code they get right to left to which isn't good when you wanna put code in there.
a suggestion would help a lot :)
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment