n457/Uncolored

feature suggestion: Text Direction Support

SRamezanH opened this issue · 3 comments

Hi,
Uncolored is really brilliant. I Checked and it supports writing rtl languages and doesn't mess with them. But unfortunately, we cannot change text direction to Right-to-Left. In Html output it'll be simple, I think. Just a line in css with direction:rtl; . I don't know any thing about markdown at depth but I see this project in python which is a Persian rtl markdown editor. I hope it'll not take much time and effort.
Other than rtl support I think the option to making texts center too will be useful.

n457 commented

Hi @SRamezanH,

Alright I keep this in mind for the next version, gotta some tests ;) Thanks for your feedback !

You can add a button in the menu setting the direction to rtl or ltr and auto.
To further clarify how to do this:

This text is one saved markdown file hosted on GitHub. (Viewed on GitHub too.)
It shows how adding an English word jumbles up the whole content.
screenshot_1
After applying this code with a custom CSS extension:

screenshot_2

The text is shown currently.
screenshot_3

@n457 I guess the same can be done with div=auto HTML attribute.