adambard / adambard/learnxinyminutes-docs

RTL languages support.

Open
#5,471 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Markdown
Stars
12.3k
Forks
3.7k
Avg merge
13h 10m
Merged PRs (30d)
6

Description

An example for the Arabic language (https://learnxinyminutes.com/ar/html/):
- The paragraph text before the code block is displayed left-to-right (LTR) instead of right-to-left (RTL).
- Mixed-direction content (Arabic sentences containing English words/terms) becomes visually jumbled, with punctuation and word order appearing incorrect.

Code blocks render as expected; the problem is limited to the non-code paragraph section in the Arabic version.

### Expected behavior

- All Arabic paragraphs render in RTL with correct alignment and ordering.
- Inline English words remain LTR while the surrounding Arabic text remains RTL, without breaking punctuation or layout.

**Actual behavior**

- Arabic paragraphs render as LTR and mixed Arabic/English text appears messy and hard to read.

**Notes**

- This occurs specifically in the Arabic localized content (pre–code block text).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.