用于通过 Blockquote 生成警告,与短代码相比,其更加简单易用。
Module | github.com/hbstack/blockquote-alerts |
---|---|
Repository | ⭐ Please consider giving a star if your like it. |
Stars | |
Version | |
Used by | |
Requirements | |
License | |
Usage | See how to use modules. |
1```markdown
2> [!TYPE]SIGN TITLE
3> body
4```
5
6TYPE = "NOTE" | "TIP" | "IMPORTANT" | "WARNING" | "CAUTION" | "QUESTION"
7SIGN = "+" | "-"
重要
TYPE
为必填。
注意
SIGN
可选,其用于指示警告是否可折叠,加号+
将默认展开警告。
TITLE 是否必填?仅当类型为
QUESTION
时,TITLE
必填,当然其可以用于自定义标题。
1> [!NOTE]
2> Useful information that users should know, even when skimming content.
3
4> [!TIP]
5> Helpful advice for doing things better or more easily.
6
7> [!IMPORTANT]
8> Key information users need to know to achieve their goal.
9
10> [!WARNING]
11> Urgent info that needs immediate user attention to avoid problems.
12
13> [!CAUTION]
14> Advises about risks or negative outcomes of certain actions.
15
16> [!QUESTION]+ Can alerts be foldable?
17> Yes, they can, you just need to append the `+` or `-` sign to the type.
18>
19> Click the heading to preview.
注意
Useful information that users should know, even when skimming content.
提示
Helpful advice for doing things better or more easily.
重要
Key information users need to know to achieve their goal.
警告
Urgent info that needs immediate user attention to avoid problems.
小心
Advises about risks or negative outcomes of certain actions.
Can alerts be foldable?Yes, they can, you just need to append the
+
or-
sign to the type.Click the heading to preview.