How do I include an image as Markdown in Visual Studio Code?

How can I add an image from the same destination folder as the document to Markdown in Visual Studio Code?

I tried this, but it didn't work:

![Getting Started](./2/to/img.jpg)

      

+10


source to share


1 answer


If the image is in the same directory as the Markdown file, you can use one of the following methods:

![Getting Started](./img.jpg)
![Getting Started](img.jpg)

      

For a workspace layout, for example:



docs/
    images/
        img.jpg
    README.md

      

In README.md

it will be either:

![Getting Started](./images/img.jpg)
![Getting Started](images/img.jpg)

      

+15


source







All Articles