Skip to content
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 set via html image path isn't shown #9

Open
ol-nikitagr opened this issue Jun 18, 2021 · 2 comments
Open

Image set via html image path isn't shown #9

ol-nikitagr opened this issue Jun 18, 2021 · 2 comments

Comments

@ol-nikitagr
Copy link

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

image
image

@ol-nikitagr ol-nikitagr changed the title Image via html set image path isn't shown Image set via html image path isn't shown Jun 18, 2021
@JackEnders
Copy link

@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

@Sean10
Copy link

Sean10 commented Sep 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants