437 字
2 分钟
Markdown 扩展功能
GitHub 仓库卡片
你可以添加链接到 GitHub 仓库的动态卡片,页面加载时会从 GitHub API 拉取仓库信息。
使用代码 ::github{repo="<owner>/<repo>"} 即可创建 GitHub 仓库卡片。
::github{repo="saicaca/fuwari"}Mermaid 图表
围栏 mermaid 代码块会被渲染为图表,并跟随当前的配色方案。
flowchart LR
accTitle: Markdown rendering pipeline
accDescr: Markdown source is transformed into semantic HTML and then enhanced as a themed SVG diagram.
A[Markdown source] --> B[Astro content pipeline]
B --> C[Semantic HTML]
C --> D[Themed diagram]提示块
支持以下类型的提示块:note tip important warning caution
基本语法
:::noteHighlights information that users should take into account, even when skimming.:::
:::tipOptional information to help a user be more successful.:::自定义标题
提示块的标题可以自定义。
:::note[MY CUSTOM TITLE]This is a note with a custom title.:::GitHub 语法
> [!NOTE]> The GitHub syntax is also supported.
> [!TIP]> The GitHub syntax is also supported.剧透
你可以在文本中添加剧透内容。剧透文本同样支持 Markdown 语法。
内容 !
The content :spoiler[is hidden **ayyy**]!图片宽度与题注
独立图片可以在替代文本中接受可选的 w-N% 宽度标记,其 Markdown 标题会渲染为图片下方居中显示的题注:

有效宽度范围为 w-1% 到 w-100%;无效标记会保留在替代文本中。宽度与题注相互独立——只提供标题同样会生成题注:


Markdown 扩展功能
https://shirone.mysqil.com/posts/markdown-extended/分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
最后更新于 ,距今已过 642 天
部分内容可能已过时