Images in right-to-left text still appear left to right

Hi Obsidian team!

Here to report a small but noticable bug when using Obsidian in right-to-left languages, which are now officially supported from my understanding.

Steps to reproduce

  • Write a text in a right to left language and insert an image in the middle

If you put images in the middle of such a text, the images will appear as if the text is left-to-right, which looks weird when you read through it. Attaching a few examples

Code samples:

1:

וטכנולוגיה צבאית ישראלית. התעשייה האווירית של סינגפור משתפת פעולה עם העמיתה המקומית ועם אלביט מערכות בהשבחת מטוסי הקרב אף-5 של חיל האוויר הטורקי. לפני שנים אחדות גילה שר ההגנה של סינגפור כי הטיל נגד טנקים "גיל" מתוצרת רפאל פותח בשיתוף פעולה בין שתי המדינות.

**מדינה מוקפת מוסלמים**

![חיילי צבא סינגפור בתערוכת נשק](https://img.haarets.co.il/bs/0000017f-f2f4-d8a1-a5ff-f2fe963c0000/6d/f6/15228409e81e959de21a112d2da4/3367082525.jpg?&width=420&height=280&cmsprod)

חיילי צבא סינגפור בתערוכת נשק צילום: בלומברג

את הצורך לשמור על חשאיות הסביר קואן יו לידידו הקרוב להנהגה ושר ההגנה הראשון בממשלתו, הד"ר גו קנג סווי: "אנחנו צריכים להבטיח, ככל שאפשר, שבואם של הישראלים לא יהיה נחלת הכלל כדי לא לגרום להתנגדות בקרב המוסלמים המאלים המתגוררים במלזיה ובסינגפור". זו, בתמצית, בעייתה של סינגפור. תושבי האי הקטן, ששטחו כ-700 קמ"ר, הם סינים ברובם, החיים בתווך שבין שתי מדינות 

2:

הרגליים, שינהלו את הצבא שלהם. ההצלחה שלכם תהיה אם בשלב מסוים יוכלו לקחת את ההגה ולנהל את הצבא לבד. דבר שני: אתם לא נוסעים לשם כדי לפקד עליהם, אלא לייעץ להם. והדבר השלישי: אתם לא סוחרי נשק. כשאתם ממליצים במה להצטייד, תשתמשו בשיפוט המקצועי הטהור ביותר. אני מבקש התעלמות מוחלטת אם הם יחליטו לקנות כאן או במקום אחר".

![לי קואן יו](https://img.haarets.co.il/bs/0000017f-f2f4-d8a1-a5ff-f2fe969c0000/5e/6b/eab4f4dc1dff3afbefd7a7d207e7/2831396990.jpg?&width=420&height=289&cmsprod)

לי קואן יו צילום: אי־פי

**השכמה בחמש וחצי**

ב-24 בדצמבר 1965 יצאו שישה קציני צה"ל מלווים במשפחותיהם למשימה בלתי מוכרת. "אלעזרי ועוד שני קצינים עסקו בהקמת משרד ההגנה", מספר גולן, "התפקיד שלי ושלושה נוספים היה להקים את הצבא". אל"מ אלעזרי פעל על פי כמה עקרונות בסיסיים, שחברי הצוות וממשיכיהם הקפידו לדבוק בהם: לבנות קאדר של מפקדים ומדריכים מקומיים; את חומר ההדרכה יכתבו החניכים שיוכשרו לקצינים; האימון ייעשה על ידי מדריכים סינגפורים.

Did you follow the troubleshooting guide? [Y/N]

Yes, the result was similar

Expected result

The image appears either centered or attached to the right, same as the text.

Actual result

The image appears on the left, as if the note is in English

Environment

SYSTEM INFO:
	Obsidian version: v1.8.4
	Installer version: v1.5.8
	Operating system: Windows 10 Home 10.0.19045
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: Obsidianite v2.0.2
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 25
	Plugins enabled: 17
		1: Homepage v4.0.7
		2: Importer v1.6.13
		3: Kanban v2.0.51
		4: Linter v1.27.1
		5: Style Settings v1.0.9
		6: Templater v2.9.1
		7: Text Extractor v0.5.2
		8: Git v2.30.1
		9: Calendar v1.5.10
		10: Image Toolkit v1.4.2
		11: Camera v1.8.0
		12: Image Context Menus v1.9.1
		13: Quick Image Upload v1.0.0
		14: Iconize v2.14.6
		15: Excalidraw v2.6.7
		16: Simple Search v1.0.0
		17: Advanced Tables v0.22.1

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

If I’m missing something I’d appreciate to know of course. Thanks for your time!

Is obsidian globally configured to work in right-to-left or left-to-right mode?

Globally left to right, but I use English for the majority of my notes so I’d like to keep it that way. Is it possible to set it on specific notes?

Ok, so I don’t think there’s a bug here.

You can use LTR/RTL mark characters to force the line of the image to be on specific side.

There’s also this FR and the Obsidian RTL third party plugin that implements some more functionality.

Got it, thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.