Skip to content
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

Images in markdown - Path with spaces #49

Open
eyssette opened this issue Sep 3, 2022 · 0 comments
Open

Images in markdown - Path with spaces #49

eyssette opened this issue Sep 3, 2022 · 0 comments

Comments

@eyssette
Copy link

eyssette commented Sep 3, 2022

When the filename of an image contains spaces, mdanki doesn't recognize the file.
A solution would be to use "%20" in the link and decodeUriComponent in MediaParser

data = fs.readFileSync(decodeURIComponent(filePath));
@eyssette eyssette changed the title Path with spaces : using "escape path with spaces" could solve the issue Images in markdown => Path with spaces : using "escape path with spaces" could solve the issue Sep 3, 2022
@eyssette eyssette changed the title Images in markdown => Path with spaces : using "escape path with spaces" could solve the issue Images in markdown - Path with spaces Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant