Module to generate alerts via blockquote, which is much simpler than using shortcodes.
Become a backer or sponsor to support our work.
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 = "+" | "-"
Important
The
TYPE
is required.
NoteThe
SIGN
is optional, which is used to indicate whether the alert is foldable, the+
sign expands the alert by default.
Is the TITLE required?The
TITLE
is required when using theQUESTION
type, it also can be used to customize 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.
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.
Can alerts be foldable?Yes, they can, you just need to append the
+
or-
sign to the type.Click the heading to preview.