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
A fresh installed elementary OS Juno 5.0 on VMware (based on Ubuntu 18.04 LTS, should be regarded as the same Linux distro in this issue)
Steps to Reproduce
Open a markdown file for example /path/to/this/file.md, which is in directory /path/to/this/;
Add a local image which is wherever outside/path/to/this/, for example /path/to/that/image.png (or ../that/image.png to current directory /path/to/this/);
Open preview of this markdown file, image just won't show up.
Screenshots
Markdown and image files' location relationship is displayed on the left half of this screenshot.
Extensions
Does this issue occur when all extensions are disabled?: Yes, and extension "Markdown Preview Enhanced" has the same issue.
More info I want to submit
This issue occurs on both Arch Linux and elementary OS: On Arch I tried community/code, archlinuxcn/visual-studio-code-bin and aur/visual-studio-code-insiders; on elementary OS I just followed the documentation Running Visual Studio Code on Linux and ran the command $ sudo apt install ./code_1.29.1-1542309157_amd64.deb.
I've also changed "Preview Security Settings" and even disabled it, still the same.
Once before I used the ../docs/image.png link on VSCode for Windows and the behavior was expected, so it seems to be an issue on VSCode for Linux for now.
The text was updated successfully, but these errors were encountered:
This is by design. Even if you disable markdown security settings, we only allow the preview to load data from inside the current workspace. This helps to somewhat lessen the impact of opening with untrusted content with security settings disabled
Versions
Steps to Reproduce
/path/to/this/file.md
, which is in directory/path/to/this/
;/path/to/this/
, for example/path/to/that/image.png
(or../that/image.png
to current directory/path/to/this/
);Screenshots
Extensions
Does this issue occur when all extensions are disabled?: Yes, and extension "Markdown Preview Enhanced" has the same issue.
More info I want to submit
This issue occurs on both Arch Linux and elementary OS: On Arch I tried
community/code
,archlinuxcn/visual-studio-code-bin
andaur/visual-studio-code-insiders
; on elementary OS I just followed the documentation Running Visual Studio Code on Linux and ran the command$ sudo apt install ./code_1.29.1-1542309157_amd64.deb
.I've also changed "Preview Security Settings" and even disabled it, still the same.
Once before I used the
../docs/image.png
link on VSCode for Windows and the behavior was expected, so it seems to be an issue on VSCode for Linux for now.The text was updated successfully, but these errors were encountered: