Browse Source

Fix: trailing whitespace on alert type caused regex mismatch

tags/0.7.2
Frans Bouma 10 years ago
parent
commit
c7db8006d7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/MarkdownSharp.cs

+ 1
- 1
src/MarkdownSharp.cs View File

@@ -1379,7 +1379,7 @@ namespace Docnet
}


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)
{


Loading…
Cancel
Save