-
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
Files with spaces are not found #527
Comments
How exactly are you referencing these files? Can you provide an example? It sounds like the issue is that markdown links are rendered as normal HTML links (the |
I have the book in a weird state currently, but with this commit I get the error from the file in the way as it does translate the link into html but it does not work. The CI throws a file not found error but I dont know why yet. |
I just checked out a local version of your book and I believe I was able to reproduce the issue you're talking about. First you add a dummy chapter to the book where the name contains a space:
Then you go to another chapter and try to link to it. None of these work:
However these work:
It seems the issue is actually intended behaviour from the Common Mark spec. Markdown links aren't allowed to contain space characters (it introduces ambiguities with the link title), so you need to escape them with either
The
|
Wow! Thank you very much for the deep analysis! What confused me was the |
I think that's because the The error message situation should be better since #522, where the code run each time a file changes was updated. It'll now log any errors which occur during re-rendering, as well as all that |
Hi all
I noticed that referenced files with spaces in the filename are not found.
However if I replace the spaces with
+
es mdbook finds the file.Sadly the file is not accessable over http later.
Funny side effect reverting the
+
to spaces in the browser finds the correct file again.Best,
Stefan
The text was updated successfully, but these errors were encountered: