From 1e6f7dfb0a4e2c7ff29fa9b6b757351a4e169034 Mon Sep 17 00:00:00 2001 From: Yunfei He Date: Thu, 3 Dec 2026 14:09:22 +0800 Subject: [PATCH] docs(md): show width and height on Markdown images --- docs/guide/pages-routing/markdown.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/pages-routing/markdown.md b/docs/guide/pages-routing/markdown.md index c7002fdd6..c090f3fd5 100644 --- a/docs/guide/pages-routing/markdown.md +++ b/docs/guide/pages-routing/markdown.md @@ -440,8 +440,12 @@ Add classes, IDs, or attributes to any element: # Heading {.custom-class #my-id} Paragraph with attributes. {.note} + +![Photo](/photo.png){width=640 height=360} ``` +Give images `width` and `height` so the page doesn't shift while they load. + ### Navigation and Media Headings include permalink anchors. Use `[[toc]]` for a table of contents. Images are lazy-loaded, and `.md` links resolve to page routes.