Skip to content

Markdown preview no longer shows images with root relative path after update to 1.40.0 #84728

Closed

Description

Markdown preview of images using this syntax ![](/assets/2019-10-24_07_56_26.png) no longer works after updating to 1.40.0.

/assets/ is a folder in the root of the folder open in vscode.

  • VSCode Version: 1.40.0, 1.40.1
  • OS Version: Windows 10 1903

Steps to Reproduce:

  1. git clone https://github.com/NathanielACollier/issues_vscode_1_40_0_markdownPreviewRootRelativeImg
  2. cd issues_vscode_1_40_0_markdownPreviewRootRelativeImg
  3. code .
  4. Image doesn't display in readme.md

Does this issue occur when all extensions are disabled?: Yes/No
Yes

11/14/2019 11:15 AM - Reformatted

Activity

  1. vscodebot commented on Nov 13, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. mjbvz commented on Nov 13, 2019

    @mjbvz
    Contributor

    Works for me. Please fill out the issue template and provide steps to reproduce this

    /needsMoreInfo

  3. added
    info-needed
    on Nov 13, 2019
  4. vscodebot commented on Nov 13, 2019

    @vscodebot

    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!

  5. NathanielACollier commented on Nov 13, 2019

    @NathanielACollier
    Author

    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.

  6. pingu8007 commented on Nov 14, 2019

    @pingu8007

    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...
    

    image

  7. inliquid commented on Nov 18, 2019

    @inliquid

    Same for me;
    изображение

    Windows 10 1903 / VS Code 1.40.1

  8. NathanielACollier commented on Nov 19, 2019

    @NathanielACollier
    Author

    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.

  9. NewFuture commented on Nov 29, 2019

    @NewFuture
    Member

    Matt Bierner (@mjbvz)
    Still reproduce in VScode 14.0.2 on Windows 10.

  10. NewFuture commented on Nov 29, 2019

    @NewFuture
    Member

    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

  11. added
    bug
    markdown-ext
    windows
    and removed
    info-needed
    on Dec 3, 2019
  12. P0oOOOo0YA commented on Dec 24, 2019

    @P0oOOOo0YA

    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. :(

  13. pingu8007 commented on Dec 25, 2019

    @pingu8007

    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

  14. locked and limited conversation to collaborators on Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugmarkdown-extverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions