Since Markdown (and so Obsidian) support HTML tags, a temporary solution to have bi-directional notes is to simply put rtl and ltr blocks between <div dir="rtl"></div> and <div dir="ltr"></div> tags.
<div dir="rtl">
این یک متن نمونه راست به چپ است
</div>
<div dir="ltr">
This is a sample left-to-right text
</div>
Then you can use the RTL support plugin shortcuts to change the direction in each block to write more conveniently. You can also use the Text Expander plugin to automate pasting div HTML tags
Sorry, the plugin doesn’t currently support Obsidian Mobile. It uses a different editor (CM6), on which RTL support works differently, and I didn’t yet find the time to make the necessary adjustments
Hoping to get to it at some point next month.
Thanks, a step in the right direction, but it’s still backwards from the existing plugin.
We need Auto RTL per sentence/paragraph, or at least per page
also would need to have it on mobile obviously
I hope to update the existing plugin to CM6 in the upcoming days, the basic functionality is very easy but there will probably be various quirks that’ll need addressing. This should also work for mobile!
On the longer term, it seems possible to implement a more comprehensive RTL behavior using the new CM6 extension interface.
Wanted to update here too, that the RTL plugin is now updated to support the new editor.
Of course, backwards compatibility with the legacy editor still exists.
IMO this whole problem needs to be solved with html attributes, and not CSS. There’s no direction: auto in CSS but with html attributes there is.
Is it possibly to simply add the html attribute dir=“auto” to all the paragraph tags etc? In my opinion this is the simplest solution and it takes care of the issue of Auto RTL per paragraph that was mentioned by @jrykner. The HTML attribute dir=“auto” takes care of this whole problem perfectly. I don’t know why it’s not more widely used.
<p dir="auto">This paragraph is in English and goes right to left.</p>
<p dir="auto">هذه الفقرة باللغة العربية ، لذا يجب الانتقال من اليمين إلى اليسار.</p>
It would be nice if they just included dir="auto" automatically in the markdown rendering of all the tags. This would solve all these problems and would automatically render the text in your example.
my notes are usually in persian and english so it would be really nice to have the rtl support per-line instead of per-file like plugins do or totally defaulting to rtl or ltr like obsidian itself does
I’ve found that in the split-screen mode, the RTL plugin only works in either RTL or LTR mode, meaning that either both documents are shown RTL or LTR. Could you please fix it? Really appreciate all your efforts