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

Local image will not preview in VSCode if code block with markdown output is in document #58

Open
jwoLondon opened this issue Feb 18, 2021 · 0 comments
Labels
bug Something isn't working priority/p2

Comments

@jwoLondon
Copy link
Member

jwoLondon commented Feb 18, 2021

Thanks to @nickysinclair for bringing this to my attention:

In VSCode, but not Atom, the following Litvis document will not preview the image when stored locally. Examples here use triple-hat notation, but also applies to full code blocks:

^^^elm m=(3+4)^^^
![Does image show?](myImage.png)

If output is changed to raw rather than markdown, there is no problem:

^^^elm r=(3+4)^^^
![Does image show?](myImage.png)

If the image is referenced via a URL to an external CORS-compliant sever, there is no problem:

^^^elm m=(3+4)^^^
![Does image show?](https://gicentre.github.io/data/images/LillyTarn.jpg)

The fact it is VSCode specific, and only to local files suggests it might be related to the cause of #49 although I don't know why it only applies to markdown output.

@jwoLondon jwoLondon added priority/p2 bug Something isn't working labels Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/p2
Projects
None yet
Development

No branches or pull requests

1 participant