You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
As I understand the alert-block syntax, it is an extension on the
orignal blockquote support in markdown. Basically, it's a blockquote
that is rendered differently.
That means that if alert-block syntax isn't supported a markdown parser
will render it as a blockquote. This provides a nice graceful fallback.
It also means that if you're implementing it, you really should
implement it the same way you implement blockquote parsing.
Copy file name to clipboardexpand all lines: lib/src/block_syntaxes/blockquote_syntax.dart
+62
Original file line number
Diff line number
Diff line change
@@ -97,3 +97,65 @@ class BlockquoteSyntax extends BlockSyntax {
97
97
returnElement('blockquote', children);
98
98
}
99
99
}
100
+
101
+
/// Parses GitHub Alerts blocks.
102
+
///
103
+
/// See also: https://docs.github.com/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts
0 commit comments