-
Notifications
You must be signed in to change notification settings - Fork 98
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 not shown by preview when there is a space in path #347
Comments
I am using VScode version 1.46.1 - images are displayed. |
Same for Visual Studio Code version 1.48.2 |
I cannot reproduce this issue with Visual Studio Code version 1.56.1 and asciidoctor.asciidoctor-vscode 2.8.9 @istavrakakis @special946 @ulrichsch Please test again with the latest version and provide additional information if it does not work |
@SilentButeo2 Could you please give us some information on your system? Are you using WSL2? Are you using Windows? Are files located on a shared/remote drive or on your local file system? Could you try to create an HTML file with the following content: <html>
<body>
<img src="test.jpg" alt="test">
</body>
</html> The, install the HTML preview extension and open/preview the HTML file. Thanks! |
extra info:
|
Don't know if this is a vscode issue. |
I have the same problem with images not showing in the preview. (Windows 10, Visual Studio Code v1.57.0, asciidoctor.asciidoctor-vscode v2.8.9)
|
Ok, it will not be the source file name, but the full path. |
Yes, I can repro this as well if I have spaces in the path. |
I needed to remove not only spaces from a path, but also the underscore "_" from a file name. |
If I delete space in *.adoc file name, then OK |
I tested on Windows with VS Code AsciiDoc 3.1.3. Again with folder structure:
and test.adoc:
It works fine if VS Code was opened on c:/tmp. |
@ulrichsch That's the behavior described in #848 but I don't think it's related to spaces in path. I cannot reproduce this issue on Windows. As long as the image is inside the workspace it's working. Please provide a screencast or a step by step reproduction case. |
@ggrossetie You exactly described the issue.
|
Closing as duplicate since #848 more accurately describes the issue. |
Description
The preview doesn't show an image that is located in the parent folder.
I'm using asciidoctor-vscode v2.8.1
Folder Structure
Logo.png
Folder/doc.asciidoc
Preview
The text was updated successfully, but these errors were encountered: