Content annotations keep supporting context close to a sentence without placing it directly in the reading flow. Activate the small note marker to reveal its content.
Basic syntax
Add a [+label] reference in ordinary prose, then define the matching note elsewhere in the same article.
Astro renders most of a page ahead of time and hydrates **interactive islands** [+islands] only when they need to become interactive.
[+islands]: An island is an interactive UI component surrounded by static HTML. This keeps the default page lightweight while preserving focused interactivity.Astro renders most of a page ahead of time and hydrates interactive islands only when they need to become interactive.
Rich content
Definitions may contain paragraphs, emphasis, links, lists, and inline code while the surrounding sentence continues normally.
Multiple definitions
Reuse a label to present a short sequence of related notes behind one marker.
Undefined references such as [+missing] remain ordinary text, so an unfinished definition never creates an empty control.
分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
最后更新于 ,距今已过 6 天
部分内容可能已过时