File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
<img src =" image.png " width =" 182 " align =" right " >
13
13
14
+ #### Alerts
15
+
16
+ > [ !NOTE]
17
+ > Highlights information that users should take into account, even when skimming.
18
+
19
+ > [ !IMPORTANT]
20
+ > Crucial information necessary for users to succeed.
21
+
22
+ > [ !WARNING]
23
+ > Critical content demanding immediate user attention due to potential risks.
14
24
15
25
### Code snippet
16
26
Original file line number Diff line number Diff line change @@ -111,6 +111,15 @@ const ALLOW_CLASS = new Set([
111
111
'.contains-task-list' ,
112
112
'.task-list-item' ,
113
113
'.task-list-item-checkbox' ,
114
+ // For Markdown alerts.
115
+ '.markdown-alert' ,
116
+ '.color-fg-accent' ,
117
+ '.color-fg-attention' ,
118
+ '.color-fg-done' ,
119
+ '.text-semibold' ,
120
+ '.d-inline-flex' ,
121
+ '.flex-items-center' ,
122
+ '.mb-1' ,
114
123
] ) ;
115
124
116
125
function extractStyles ( rules , ast ) {
You can’t perform that action at this time.
0 commit comments