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

internal url links with spaces do not work on macs #12

Closed
pdoak opened this issue Jan 22, 2019 · 4 comments
Closed

internal url links with spaces do not work on macs #12

pdoak opened this issue Jan 22, 2019 · 4 comments

Comments

@pdoak
Copy link

pdoak commented Jan 22, 2019

I am using nvim 0.3.1 on a mac and internal url links do not work if they contain a space. This link:

![Close High Crosses](/images/Screenshot%202019.png)
does not work. Filenames that don't contain a space appear to work as expected.

I have also tried:
![Close High Crosses](/images/Screenshot\ 2019.png)
but this does not work either.

Also the link paths have to be relative to the folder that the markdown file is in. Is it possible to use the full path?

@iamcco
Copy link
Owner

iamcco commented Jan 23, 2019

fix, space in url is not allow for markdown. so use \ if it contain space.

and ![Close High Crosses](/images/Screenshot\ 2019.png) is right, relative and absolute path are all support. update and have a try.

@pdoak
Copy link
Author

pdoak commented Jan 23, 2019

Using \ does not seem to work for me. If I use
![Close High Crosses](/images/Screenshot\ 2019.png) in my markdown document, I get this error:
[markdown-preview.vim] uncaught exception: Error: ENOENT: no such file or directory, open '/Users/xxx/images/Screenshot%5C%202019.png'

Am I doing something wrong?

Also, full paths do not work for me, only relative paths seem to work.

@iamcco
Copy link
Owner

iamcco commented Jan 23, 2019

have you udpate to the latest version? relative and absolute path should work

@pdoak
Copy link
Author

pdoak commented Jan 23, 2019

Updated to the latest version and everything works. Thanks for your help.

@iamcco iamcco closed this as completed Jan 24, 2019
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

2 participants