Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.82k stars 558 forks source link

In RTL languages checked checklist items move to the right #1572

Open belcherj opened 5 years ago

belcherj commented 5 years ago

When checking a checklist item in rtl languages the item moves to the left: https://imgur.com/a/WNO1yAi

Expected

Should be right-aligned

Observed

It is right-aligned

belcherj commented 4 years ago

- [x] RTL Language is determined to be LTR. This function only looks at the first letter character which in this case is an x and determines it to be LTR. https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/unicode/UnicodeBidi.js#L198

hadisfr commented 3 years ago

Any progress here?

In recent versions problem appears in more general use cases:

Here is a more detailed example:

تست می‌کنیم

- یک مثال دیگر
* یک مثال

* [x] یک مثال جدید
* [ ] یک مثال جدید دیگر

* [ ] test
*  [X] another test

GitHub MarkDown rendering:


تست می‌کنیم


image

SmpleNote Electron Edit: image

SimpleNote Electron Preview: image

SimpleNote Android Edit: image

SimpleNote Android Preview: image

Expectation: image