Skip to content

Commit 824068f

Browse files
committed
add example of nested alerts
1 parent e6c10aa commit 824068f

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

_template/how-to/alerts-admonitions-callouts.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Examples of using Alerts, Admonitions, or Callouts
22

3-
## Examples
3+
## Alert Examples
44

5-
A note...
5+
### Note
66

77
> [!NOTE]
88
> Highlights information that users should take into account, even when skimming.
99
10-
A tip...
10+
### Tip
1111

1212
> [!TIP]
1313
> Optional information to help a user be more successful.
1414
15-
Something important...
15+
### Important
1616

1717
> [!IMPORTANT]
1818
> Crucial information necessary for users to succeed.
1919
20-
A warning...
20+
### Warning
2121

2222
> [!WARNING]
2323
> Critical content demanding immediate user attention due to potential risks.
2424
25-
Caution...
25+
### Caution
2626

2727
> [!CAUTION]
2828
> Negative potential consequences of an action.
2929
30-
Embedding a code-block in an alert:
30+
### Embedded Code-block
3131

3232
> [!TIP]
3333
> Some useful Javascript:
@@ -38,6 +38,19 @@ Embedding a code-block in an alert:
3838
> }
3939
> ```
4040
41+
### Nested Alerts
42+
43+
> [!NOTE]
44+
> Highlights information that users should take into account, even when skimming.
45+
> > [!TIP]
46+
> > Optional information to help a user be more successful.
47+
> > > [!IMPORTANT]
48+
> > > Crucial information necessary for users to succeed.
49+
> > > > [!WARNING]
50+
> > > > Critical content demanding immediate user attention due to potential risks.
51+
> > > > > [!CAUTION]
52+
> > > > > Negative potential consequences of an action.
53+
4154
## Resources
4255
4356
- <https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts>

0 commit comments

Comments
 (0)