mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 03:32:51 +02:00
1.9 KiB
1.9 KiB
title | published | tags | toc | lang | abbrlink | |
---|---|---|---|---|---|---|
Markdown 扩展功能 | 2025-04-25 |
|
false | zh | markdown-extended-features |
本文介绍 Retypeset 主题支持的 Markdown 扩展功能,包括语法示例与效果展示。
图注
使用标准的 Markdown 图像语法 
,即可自动生成图注。在 alt
前添加下划线 _
或留空 alt
,即可隐藏图注。
语法


效果
Github 仓库卡片
使用双冒号语法 ::github{repo="owner/repo"}
,即可创建 Github 仓库卡片。在页面加载后,从 GitHub API 中获取仓库数据。
语法
::github{repo="radishzzz/astro-theme-retypeset"}
效果
::github{repo="radishzzz/astro-theme-retypeset"}
提示块
使用 GitHub 语法 > [!TYPE]
或三冒号语法 :::type
,即可创建提示块。支持 note
、tip
、important
、warning
和 caution
五种类型。
语法
> [!NOTE]
> 基础的信息内容。
:::note
基础的信息内容。
:::
:::note[自定义标题]
自定义标题的提示块。
:::
效果
Note
基础的信息内容。
Tip
实用的提示建议。
Important
重要的通知提醒。
:::warning 紧急的事项说明。 :::
:::caution 严重的风险警告。 :::
:::note[自定义标题] 自定义标题的提示块。 :::