summaryrefslogtreecommitdiff
path: root/docs/src/pages/guides/markdown-content.md
diff options
context:
space:
mode:
authorGravatar Stephan Bogner <hello@stephanbogner.de> 2021-10-18 19:26:53 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-18 19:26:53 +0200
commitc2b3efeca84a12ddcb66afa8bf7b4e1486260ab4 (patch)
tree4c5e1ec3d2ae4b88e389f163582c8e2a5e797beb /docs/src/pages/guides/markdown-content.md
parenta6759106f16573f2d9d4eeb7a21ee7a176a299b5 (diff)
downloadastro-c2b3efeca84a12ddcb66afa8bf7b4e1486260ab4.tar.gz
astro-c2b3efeca84a12ddcb66afa8bf7b4e1486260ab4.tar.zst
astro-c2b3efeca84a12ddcb66afa8bf7b4e1486260ab4.zip
Added clarifications regarding using images and videos especially regarding Markdown (#1583)
Diffstat (limited to 'docs/src/pages/guides/markdown-content.md')
-rw-r--r--docs/src/pages/guides/markdown-content.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/pages/guides/markdown-content.md b/docs/src/pages/guides/markdown-content.md
index aed8edcb7..07849182e 100644
--- a/docs/src/pages/guides/markdown-content.md
+++ b/docs/src/pages/guides/markdown-content.md
@@ -116,6 +116,13 @@ For Markdown files, the `content` prop also has an `astro` property which holds
> Keep in mind that the only guaranteed properties coming from the `content` prop are `astro` and `url`.
+### Images and videos
+Using images or videos follows Astro's normal import rules:
+
+- Place them in the `public/` as explained on the [project-structure page](/core-concepts/project-structure/#public)
+ - 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](/guides/imports#other-assets) (when using Astro's Markdown Component)
+
## Astro's Markdown Component
Astro has a dedicated component used to let you render your markdown as HTML components. This is a special component that is only exposed to `.astro` files. To use the `<Markdown>` component, within your frontmatter block use the following import statement: