You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue occur when all extensions are disabled?: Yes
Markdown image links with relative paths that navigate up (..\) are not displayed in the Markdown Preview. When I press the control key + left click the link, then the image is displayed correctly in a VSCode tab. So VSCode is able to find and display the image, just not in the previewer.
I have seen quite some bug reports on this issue in the past. It is still not resolved (although the reports were closed). This puzzles me, and made me reluctant to open yet another issue, but it is too important for me to let go.
Steps to Reproduce:
Create a new Markdown file.
Create/copy an image in a different folder on the same level (adjacent) or higher in the folder hierarchy.
For example: the .md in: C:\Users\you\learning\summaries
and the image in C:\Users\you\learning\resources or n C:\Users\you\learning
Refer to the image from the Markdown: ![this image will not be displayed](..\resources\example.png)
How did I test so far?
I have tested with PNG and JPG files. No difference.
I have used adjacent (= same level), child and parent folders. This is how I found out that child folders do not pose a problem, whereas parent and adjacent folders do. So when I use ..\ in the path the problem occurs, else not.
I have used forward and backward slashes in the path description. No difference.
I have used escaped and non-escaped forward and backward slashes in the path. No difference.
Example set up:
The text was updated successfully, but these errors were encountered:
The folder I opened in VSCode is C:\Users\myusername\OneDrive\Documenten\Alex\learning\summaries\
And if I only open the Markdown file and I do not open a folder, the behavior is the same (no image shown but it opens when I control-click the link in the Markdown source).
Markdown image links with relative paths that navigate up
(..\)
are not displayed in the Markdown Preview. When I press the control key + left click the link, then the image is displayed correctly in a VSCode tab. So VSCode is able to find and display the image, just not in the previewer.I have seen quite some bug reports on this issue in the past. It is still not resolved (although the reports were closed). This puzzles me, and made me reluctant to open yet another issue, but it is too important for me to let go.
Steps to Reproduce:
For example: the .md in: C:\Users\you\learning\summaries
and the image in C:\Users\you\learning\resources or n C:\Users\you\learning
![this image will not be displayed](..\resources\example.png)
How did I test so far?
..\
in the path the problem occurs, else not.Example set up:
The text was updated successfully, but these errors were encountered: