Steps to reproduce
- Open Obsidian and create a new note.
- Enter a level 1 heading in English (LTR) text. For example:
# This is an English Heading
. - Enter a level 1 heading in Arabic (RTL) text. For example:
# هذا عنوان عربي
. - Inspect the HTML elements using devtools.
- 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.