markless icon indicating copy to clipboard operation
markless copied to clipboard

Image set via html image path isn't shown

Open ol-nikitagr opened this issue 3 years ago • 2 comments

<img src="../attachments/2021-06-02-15-59-45.png" width="200" height="200" />

image image

ol-nikitagr avatar Jun 18 '21 13:06 ol-nikitagr

@tejasvi First of all, amazing plugin, it is pretty much exactly how I want to edit Markdown in VSCode.

Just wanted to add that I'm seeing this behaviour for images that are defined with a relative path, such as the one below:

image

It looks like the plugin is using the project's directory instead of the current file to determine the relative path. For example, the file in the above screenshot is located at /Users/jackenders/Documents/Github/Notes/foo/bar, so I would expect the plugin to look for the image at /Users/jackenders/Documents/Github/Notes/attachments/0.png. Instead, it attempts to access the image at /Users/jackenders/Documents/attachments, based on the path it displays when clicking "InlinePreview":

image image

Let me know if I can provide any additional details!

Thanks, Jack

JackEnders avatar Jun 30 '21 23:06 JackEnders

Now support http image link preview in custom version [email protected]

Sean10 avatar Sep 22 '21 15:09 Sean10