From c7db8006d76c5782f8db2f8805a5b8fa9e4ecf56 Mon Sep 17 00:00:00 2001 From: Frans Bouma Date: Wed, 10 Feb 2016 14:28:42 +0100 Subject: [PATCH] Fix: trailing whitespace on alert type caused regex mismatch --- src/MarkdownSharp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {