Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow special characters in directory name, optimization #68

Merged
merged 4 commits into from
Aug 18, 2023

Conversation

marmotton
Copy link
Contributor

The keys of self.files are url encoded. This leads to errors when the path of a file contains special characters as src_path is not url encoded.

Modifications:

  • url encode the directory path
  • generate self.files in the on_files() function instead of on_page_markdown() (this is only an optimization, not strictly needed)
  • test (directory with special characters)

@manuzhang manuzhang merged commit d0add3f into manuzhang:main Aug 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants