-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't use \
as directory separator, not even on Windows
#119
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
Comments
I don't have a windows machine, so I can't really test this. My first guess would be that Rusts Paths are represented that way on windows. I don't know if there is an option to change that. Else I will have make my own path to string method that behaves the same on all platforms. |
I guess that Path-to-String solution would be the easiest way to go. Its just a matter of a simple extra In fact, |
@Evrey, could you tell me exactly where this happens? Is this only for links in the sidebar, navigation, all links? |
Right now it looks like only sidebar-/navigation-links are affected, i.e. those links that will be converted from |
Yes, it's what I thought. So I use path.to_str() and it seems that it uses the
Do you know how I could set the |
I have used the |
Slashes everywhere, finally! Many thanks. |
Good! I will make a release to crates.io in the following days :) |
Yeah. mdBook generates all links with
.\chapter.html
instead of./chapter.html
on Windows. This way, I have to edit all links by hand if I plan to load my on-Windows-generated HTML book up on some website.The text was updated successfully, but these errors were encountered: