[Questions] Markdown in VScode cannot display preview images

[Questions] Using markdown in VScode cannot display preview pictures


You need to [Change Preview Security Settings] to preview webpage pictures; you need to change to relative paths to preview local pictures.

There is a problem: The markdown preview cannot display pictures, as shown in the following figure
insert image description here
insert image description here
for specific methods:

(1) On the VScode editing page, press the shortcut keys Ctrl+Shift+P, search for markdown to change the preview security settings , and select Allow unsafe content to display the preview web page image.
insert image description here
insert image description here
(2) To display a preview of the local image, pay attention to the path of the .md file and the path where the image is stored, and use the relative path of the image to display the preview. (Note that the path cannot have quotes " ")

Preview result:
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_41821678/article/details/105007956