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

Image files with spaces in their file name arent possible to embed #22

Closed
binEpilo opened this issue Oct 6, 2024 · 4 comments
Closed

Comments

@binEpilo
Copy link

binEpilo commented Oct 6, 2024

I dont really know whether this is just some markdown rule, but if I type

![](file name.jpg) to import the image "file name.jpg" it doesnt work.

Is this a bug or a markdown feature?

@jannis-baum
Copy link
Owner

Hello! I can't try this out right now but if you want to look into you could try using %20 to escape the spaces. In case that doesn't work I can look into it later/in the next days :)

@tuurep
Copy link
Collaborator

tuurep commented Oct 6, 2024

Oh yes, hadn't thought about that. Looks like it's kind of a limitation of Markdown in general, found this video giving 2 different ways to get around it:

https://www.youtube.com/watch?v=i7_3CsNVtjQ

I tested these out, you can either write the space as %20, or wrap the path in <> brackets:

![](file%20name.jpg)
![](<file name.jpg>)

The angle-bracket solution seems especially reasonable to me

@tuurep
Copy link
Collaborator

tuurep commented Oct 6, 2024

Haha we replied at the same time.. but hey I think I had something to add

@jannis-baum
Copy link
Owner

Nice, thanks @tuurep for investigating! Sounds to me like that solves it so I'll close this.

@binEpilo in case there are any other concerns feel free to reopen the issue!

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

3 participants