update image reference path (#2417)

This commit is contained in:
Ramanathan10 2022-01-19 12:25:02 -08:00 committed by GitHub
parent a8494a91d4
commit 04c2e2e4cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ For Markdown files, the `content` prop also has an `astro` property which holds
Using images or videos follows Astro's normal import rules:
- Place them in the `public/` as explained on the [project-structure page](/en/core-concepts/project-structure/#public)
- Example: Image is located at `/public/assets/img/astonaut.png` → Markdown: `![Astronaut](assets/img/astronaut.png)`
- Example: Image is located at `/public/assets/img/astonaut.png` → Markdown: `![Astronaut](/assets/img/astronaut.png)`
- Or use `import` as explained on the [imports page](/en/guides/imports#other-assets) (when using Astro's Markdown Component)
### Markdown draft pages