285 字
1 分钟
文章内容注释

在正文中写入 [+标签],并使用同名注释定义添加说明。读者可以点击标记查看补充内容,注释支持列表、链接与代码。

原版技术参考与完整示例(英文)

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 [+islands] only when they need to become interactive.

An island is an interactive UI component surrounded by static HTML. This keeps the default page lightweight while preserving focused interactivity.

Rich content#

Definitions may contain paragraphs, emphasis, links, lists, and inline code [+rich-note] while the surrounding sentence continues normally.

Authoring guidance

  • Keep the first sentence self-contained.
  • Use a link when readers may need the primary source.
  • Prefer concise examples such as client:visible.

See the Astro islands documentation for the full model.

Multiple definitions#

Reuse a label [+review] to present a short sequence of related notes behind one marker.

Start with the decision that changes the reader’s next action.

Keep implementation evidence separate from background context.

Remove details that belong in the main article instead of the annotation.

Undefined references such as [+missing] remain ordinary text, so an unfinished definition never creates an empty control.

文章内容注释
https://sheeqi.com/posts/content-annotations/
作者
Sheeqi
发布于
2026-08-27
许可协议
CC BY-NC-SA 4.0

分享文章

生成精美分享图或复制链接,与更多人分享本文。

继续阅读

沿着主题读

基于共同的标签与分类

换条路线

从其他文章中稳定抽取