Closed ahangarha closed 8 months ago
Thanks so much for this contribution @ahangarha
Thanks for your review and merge.
Is there any particular reason to stick to a markdown editor based on codemirror? I am unsure how long it would take for codemirror to add bidi support.
If not, I think there are good, viable options to consider.
This PR is a part of a series of PRs to the NextCloud ecosystem to add bidirectional text support.
In terms of the overall layout, this PR doesn't make any changes in the UI in LTR language (and in the current state of the NextCloud server for RTL language). But it brings flexibility to the UI so that in the RTL layout, it makes automatic adjustments.
Since the editor is a third-party package, adding bidi support to it will take longer time. We might even consider other options as codemirror failed in adding bidi support for a long time. But for the Preview, I added
markdown-it-bidi
which is working fine now.Screenshot (in RTL layout)