Skip to content

Align Line to Support Bidirectional Text #38

@Bip901

Description

@Bip901

Current Behavior

Currently, lines are always aligned to the left. The file:

Test 123
فحص 123
בדיקה 123

Renders as:

Image

Desired Behavior

Paragraphs/lines that begin with a "Strong" RTL character should be aligned to the right, like so:

Image

This excludes "weak" leading characters, like - [ ]. For example, here, the first line should be aligned left-to-right, and the last 2 right-to-left:

- [ ] Test
- [ ] בדיקה
- [ ] فحص

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions