RTL suppurt in reading mode

Steps to reproduce

  1. Open Obsidian and create a new note.
  2. Enter a level 1 heading in English (LTR) text. For example: # This is an English Heading.
  3. Enter a level 1 heading in Arabic (RTL) text. For example: # هذا عنوان عربي.
  4. Inspect the HTML elements using devtools.
  5. Switch between reading and editing mode .

Expected result

  • In reading mode, the English (LTR) heading should have the HTML attribute dir="ltr".
  • In reading mode, the Arabic (RTL) heading should have the HTML attribute dir="rtl".
  • In editing mode, the English (LTR) heading should have the HTML attribute dir="ltr".
  • In editing mode, the Arabic (RTL) heading should have the HTML attribute dir="rtl".

Actual result

  • In reading mode, both the English (LTR) and Arabic (RTL) headings have the HTML attribute dir="auto".
  • Editing mode working as expected.

I don’t understand why this is a bug.

Which problem does this create?

1 Like

As a theme developer i can’t make a same style between reading and editing mode.

RTL languages need different style approaches, in editing mode i can do that but i couldn’t in reading mode.

ok, I do not consider this a bug and dir=auto doesn’t mean LTR. I am gonna move this to CSS help.