-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Right to Left #1486
Comments
Seems to be because |
Ah, I see. I thought you just meant the huge padding in the sidebar itself. So more like this: .sidebar {
...
- left:0;
+ right: 0;
...
} @media only screen and (min-width: 620px) {
.sidebar-visible .page-wrapper {
transform: none;
- margin-left: var(--sidebar-width);
+ margin-right: var(--sidebar-width);
}
} .next {
- float: right;
+ float: left;
right: var(--page-padding);
} The arrow directions for next/previous (set by class |
Best solution would probably be to use CSS logical properties. Most common ones seem to be supported on everything except Internet Explorer. |
Hey @moaz-mokhtar and @crawfxrd , I don't know if this is directly related to this RTL support but in order to have good quality support for Arabic-script languages like Is there any option to configure specific fonts for specific languages? I know we can modify themes but if mdbook itself had proper fonts builtin such as open-sans for latin-script languages, it would be way better. |
I'm going to close as basic rtl support is now available with the |
EDITED
Very thankful for this tool.
We need to add support to configure RTL languages (ex: Arabic) to be appeared professionally.
I did test
mdbook
for Arabic text as below:First fix
I did edit
html
tag in resultedchapter_1.html
as below to supportrtl
:It is appeared as below:
Second fix
I did edit the linked stylesheet in
chapter_1.html
as below to right align.Appeared as below:
Still found issue:
The text was updated successfully, but these errors were encountered: