浏览代码

Fix: trailing whitespace on alert type caused regex mismatch

tags/0.7.2
Frans Bouma 10 年前
父节点
当前提交
c7db8006d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/MarkdownSharp.cs

+ 1
- 1
src/MarkdownSharp.cs 查看文件

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


正在加载...
取消
保存