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
{{ message }}
Repository navigation
Markdown preview no longer shows images with root relative path after update to 1.40.0 #84728
bugIssue identified by VS Code Team member as probable bugmarkdown-extThe Markdown extension: language features and previewverifiedVerification succeededwindowsVS Code on Windows issues
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
We've seen the problem on every windows 10 1903 computer we've tried it on. I've tried the repo on ubuntu 19.10 and it's works fine. I've tried it on macos 10.14.6 and it works.
I got the same issue on Windows 10 1903, and every time I open the preview page I got following lines in console:
[Embedded Page] Not allowed to load local resource: file:///D:/%5Copt%5CDocuments%5Cwww%5Cassets%5C2019%5CIMG_20191003_184153.jpg
ERR Invalid regular expression: /^image\\jpeg;label:IMG_20191003_184153\.jpg;description:HEAD;size:313833;base64...
I found out today that the Markdown Preview Enhanced extension still functions correctly. So if your on windows and use vscode for markdown you can install it and your images with root folder paths should function again.
As PinGu (@pingu8007) mentioned, the reason is, that it can not load local images in schema such as file:///D:/....
It may be a problem with security policies.
Same here on Linux it seems this feature is broken in all major operating systems. Absoulte path, Relative path, Absolute with file protocol to make it a valid URI, no matter what i do it doesn't load images. :(
Same here on Linux it seems this feature is broken in all major operating systems. Absoulte path, Relative path, Absolute with file protocol to make it a valid URI, no matter what i do it doesn't load images. :(
It's strange. Did your update to latest version?
It should be fixed in last few updates and I can confirm it's works in vscode 1.41.1
bugIssue identified by VS Code Team member as probable bugmarkdown-extThe Markdown extension: language features and previewverifiedVerification succeededwindowsVS Code on Windows issues
Activity
vscodebot commentedon Nov 13, 2019
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
mjbvz commentedon Nov 13, 2019
Works for me. Please fill out the issue template and provide steps to reproduce this
/needsMoreInfo
vscodebot commentedon Nov 13, 2019
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!
NathanielACollier commentedon Nov 13, 2019
I'll work on the issue template. This is the minimal folder that would reproduce the problem. The problem is still present in 1.40.1.
https://github.com/NathanielACollier/issues_vscode_1_40_0_markdownPreviewRootRelativeImg
We've seen the problem on every windows 10 1903 computer we've tried it on. I've tried the repo on ubuntu 19.10 and it's works fine. I've tried it on macos 10.14.6 and it works.
pingu8007 commentedon Nov 14, 2019
I got the same issue on Windows 10 1903, and every time I open the preview page I got following lines in console:
inliquid commentedon Nov 18, 2019
Same for me;

Windows 10 1903 / VS Code 1.40.1
NathanielACollier commentedon Nov 19, 2019
I found out today that the
Markdown Preview Enhancedextension still functions correctly. So if your on windows and use vscode for markdown you can install it and your images with root folder paths should function again.NewFuture commentedon Nov 29, 2019
Matt Bierner (@mjbvz)
Still reproduce in
VScode 14.0.2on Windows 10.NewFuture commentedon Nov 29, 2019
As PinGu (@pingu8007) mentioned, the reason is, that it can not load local images in schema such as
file:///D:/....It may be a problem with security policies.
And #85820 is a workaround to fix this bug
P0oOOOo0YA commentedon Dec 24, 2019
Same here on Linux it seems this feature is broken in all major operating systems. Absoulte path, Relative path, Absolute with
fileprotocol to make it a valid URI, no matter what i do it doesn't load images. :(pingu8007 commentedon Dec 25, 2019
It's strange. Did your update to latest version?
It should be fixed in last few updates and I can confirm it's works in vscode 1.41.1