Skip to content

Commit 65be017

Browse files
committed
style: support portable markdown note callouts
1 parent aa5f7eb commit 65be017

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

sass/main.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,21 @@ blockquote.markdown-alert-note {
286286
background-color: $background;
287287
}
288288

289+
/* Support portable Markdown notes: > **Note:** ... */
290+
blockquote:has(> p:first-child > strong:first-child) {
291+
border-left-color: $quote-alert-note-color;
292+
background-color: $background;
293+
}
294+
295+
blockquote > p:first-child > strong:first-child {
296+
color: $quote-alert-note-color;
297+
font-weight: bold;
298+
}
299+
300+
blockquote > p:first-child > strong:first-child::before {
301+
content: "🔍 ";
302+
}
303+
289304
blockquote.markdown-alert-tip:before {
290305
content: "💡 Tip";
291306
font-weight: bold;

0 commit comments

Comments
 (0)