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.
npx.cmd astro checkpnpm.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 syntaxContent:::
> [!TIP]> GitHub Alert syntax
::: details Optional contentHidden until the reader opens it.:::Markdown 提示容器
https://sheeqi.com/posts/admonitions/分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
最后更新于 ,距今已过 62 天
部分内容可能已过时