Markdown css styles not shown when RTL is enable

One thing to note, is that this will only work on sites that have enabled the ‘support mixed text direction’ setting. That setting is not enabled on Meta, but I can see from the screenshot in your initial post that you have been trying this on a site that does have the setting enabled.

When I set my local to Arabic, and enter the following markup into the composer

<p>Let’s say I wanna write a new line like this:</p>
<p>أهلا جميعاً !</p>

This is the HTML that is generated

<p dir="ltr">Let’s say I wanna write a new line like this:</p>
<p dir="rtl">أهلا جميعاً !</p>

The result looks like this:

Entering the text as Markdown also works, and is the more standard way of doing it:

Let’s say I wanna write a new line like this:

أهلا جميعاً !

When using Markdown, you must include an empty line between the two lines of text to create a new paragraph.

If your text is inside of a list, it will not work as expected.

If the above Markdown is not working for you on a site that has enabled mixed text direction support, can you let us know which browser you are using?

2 Likes