Markdown 扩展功能

1 min

以下是 Retypeset 主题的 Markdown 扩展功能,包括语法示例与样式效果。

提示块

使用容器指令 :::type 或 GitHub 语法 > [!TYPE],即可创建提示块。支持以下五种类型:notetipimportantwarningcaution

语法

:::note
Useful information that users should know, even when skimming content.
:::

> [!NOTE]
> Useful information that users should know, even when skimming content.

:::note{title="YOUR CUSTOM TITLE"}
This is a note with a custom title.
:::

效果

NOTE

Useful information that users should know, even when skimming content.

TIP

Helpful advice for doing things better or more easily.

IMPORTANT

Key information users need to know to achieve their goal.

WARNING

Urgent info that needs immediate user attention to avoid problems.

CAUTION

Advises about risks or negative outcomes of certain actions.

YOUR CUSTOM TITLE

This is a note with a custom title.

图注

使用 Markdown 图像语法 ![alt](src)且上下均为空行,即可自动生成图注。在 alt 前添加下划线 _ 或留空 alt,即可隐藏图注。

显示图注


![图片描述](./full/or/relative/path/of/image)

隐藏图注

![_图片描述](./full/or/relative/path/of/image)

![](./full/or/relative/path/of/image)