217 字
1 分钟
Markdown 提示容器

提示容器用于区分备注、信息、建议、警告和注意事项。支持 :::note、:::tip 等语法,也兼容 GitHub 提示块;折叠详情可使用 :::details。

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

Admonitions keep supporting information visually distinct while preserving the article’s reading flow. Every form is rendered on the server and uses the same compact M3E component.

Semantic variants#

Optional details#

Inspect the complete command

The disclosure uses native browser semantics and remains keyboard accessible without client JavaScript.

Terminal window
npx.cmd astro check
pnpm.cmd build
  • It starts closed.
  • Long code can scroll inside its own code block.
  • The container remains within the article width on narrow screens.

Author syntax#

:::note[Existing title syntax]
Content
:::
::: warning Plume-compatible title syntax
Content
:::
> [!TIP]
> GitHub Alert syntax
::: details Optional content
Hidden until the reader opens it.
:::
Markdown 提示容器
https://sheeqi.com/posts/admonitions/
作者
Sheeqi
发布于
2026-08-27
许可协议
CC BY-NC-SA 4.0

分享文章

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

继续阅读

沿着主题读

基于共同的标签与分类

换条路线

从其他文章中稳定抽取