No RTL Support & Search not working for languages like arabic or persian!
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 22.2k
- Forks
- 1.9k
- PR merge metrics
- PR metrics pending
Description
Problem
Hey! I'm working on a website with mdBook that is written in Persian and I stumbled upon these issues:
First: There is no RTL support. I fixed the problem at least for the content itself in the book with this CSS:
#content > main:nth-child(1) > * {
text-align: start;
unicode-bidi: plaintext;
}
But still, as you can see, some parts aren't fixed with this fix.
I think it's a simple fix, but it's really needed!
Second problem:
Search doesn't work for Arabic/Persian text but works perfectly for English!
Steps
- Make a new project
- Write some Persian/Arabic Text in it
- Search for the Persian/Arabic Text
Possible Solution(s)
No response
Notes
No response
Version
mdbook v0.4.37
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing both problems in a new mdBook project using Persian or Arabic text, following the listed steps. Inspect the generated content styling and search behavior, then verify that RTL layout works across the affected page elements and that Arabic/Persian queries return matching text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, rust
- Domain
- frontend, internationalization, search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100