feat: add markdown alerts support (#1221)
* Markdown alerts * refactor(alert): move alert color to variable.scss and simplify the style * style: fix indent in render-blockquote * feat(alert): add customizable alert icons for different alert types * doc: add example usage of markdown alert --------- Co-authored-by: Jimmy Cai <jimmy@cai.im>
This commit is contained in:
@@ -47,6 +47,23 @@ Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sap
|
||||
|
||||
[^1]: 以上引用摘自 Rob Pike 在 2015 年 11 月 18 日 Gopherfest 期间的[演讲](https://www.youtube.com/watch?v=PAAkCSZUG1c)。
|
||||
|
||||
### 带提示的引用
|
||||
|
||||
> [!NOTE]
|
||||
> 突出显示用户在快速浏览时也应注意的信息。
|
||||
|
||||
> [!TIP]
|
||||
> 可选信息,帮助用户更顺利地完成任务。
|
||||
|
||||
> [!IMPORTANT]
|
||||
> 用户成功所必需的关键信息。
|
||||
|
||||
> [!WARNING]
|
||||
> 由于潜在风险而需要用户立即关注的关键内容。
|
||||
|
||||
> [!CAUTION]
|
||||
> 某个操作可能带来的负面后果。
|
||||
|
||||
## 表格 (Tables)
|
||||
|
||||
表格虽然不是 Markdown 核心规范的一部分,但 Hugo 出箱即用地支持它们。
|
||||
|
||||
Reference in New Issue
Block a user