n457 / Uncolored

(Un)colored — Next generation desktop rich content editor that saves documents with themes. HTML & Markdown compatible. For Windows, OS X & Linux. — http://n457.github.io/Uncolored/
Apache License 2.0
776 stars 51 forks source link

feature suggestion: Text Direction Support #37

Open SRamezanH opened 7 years ago

SRamezanH commented 7 years ago

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 6 years ago

Hi @SRamezanH,

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

mohsenkhanpour commented 6 years ago

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

mohsenkhanpour commented 6 years ago

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