diff --git a/src/MarkdownSharp.cs b/src/MarkdownSharp.cs index 6435dda..d43e67b 100644 --- a/src/MarkdownSharp.cs +++ b/src/MarkdownSharp.cs @@ -1379,7 +1379,7 @@ private string FaIconEvaluator(Match match) } - private static Regex _alertBlock = new Regex(@"(@alert) (\S+)\n([\s\S]+?)\s(@end)", RegexOptions.Compiled); + private static Regex _alertBlock = new Regex(@"(@alert) (\S+)\s*([\s\S]+?)\s(@end)", RegexOptions.Compiled); private string DoAlertBlocks(string text) {