Automattic / Automattic/simplenote-electron

RTL: Selection is wrong, Markdown confuses RTL detection

Open
#2,457 8 comments 0 reactions 0 assignees View on GitHub
[feature] editor bug i18n
Dominant language
TypeScript
Stars
5.3k
Forks
588
Avg merge
9h 45m
Merged PRs (30d)
4

Description

1. In Linux. RTL is not working as it should be. In comparison with windows version. Starting typing in Arabic will lead the text starting from the right (correct behavior) but starting with a "-" or like "##" will lead to this first symbol to be placed at left instead.
Ex.
Expected: عنوان ##
Bugged : ## عنوان

2. Mixing Arabic and English will lead to an issue while selecting the whole line. It basicly select an empty space in the left (while it actually the whole line is selected, can confirm by pressing backspace as the whole line deleted). This is confusing.

3 RTL in markdown doesn't work. (fixed in win and Mac)

manjaro vs windows
https://imgur.com/Khcfvl1

### Reproduced

Reproduced by using Simplenote in any Linux distro

### Where did you see the bug
Using Manjaro freshly installed.
Simplenote 2.0.0

a probably useful link using RLM and LRM
https://www.w3.org/TR/WCAG20-TECHS/H34.html
adding toggle button will probably satisfy the most
BoostIO/Boostnote#3282

UPDATE:

After checking out it seems like I had an older version in windows. i tried up to version 1.21.1 and the arabic text appears right.
It seems like version 2.0.0 is bugged even in windows as texts appears strangly. check the image https://imgur.com/Khcfvl1

on right an older version and on the left version 2.0.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Arabic, mixed Arabic/English selection, and Markdown cases in Simplenote 2.0.0 on Linux, then compare the behavior with version 1.21.1 and the reported Windows versions. Done means RTL ordering, whole-line selection, and RTL Markdown rendering behave consistently without confusing visual placement.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, typescript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.