453 字
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]提示框(Admonitions)
支持以下类型的提示框: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**]!图片宽度与标题
一张独立的图片可以在其 alt 文本中接受可选的 w-N% 宽度标记,并把 Markdown title 渲染为图片下方居中的说明文字:

有效宽度范围为 w-1% 到 w-100%;无效的标记会保留在 alt 文本中。宽度与说明彼此独立——仅提供 title 也可以生成说明文字:


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