用於通過 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.