dotnet-cnblogs-tool
dotnet-cnblogs-tool copied to clipboard
博主,提取0个是什么情况,文档里是有本地图片的呀

 这种 markdown 语法哈,用相对路径,你别是用的 img-src
可以下载源码,在 ImageHandler.cs 中增加一条正则
private const string MatchHtmlRule = "<img src="(.*?)"";
public List
var matchResult = Regex.Matches(content, MatchRule, RegexOptions.IgnoreCase | RegexOptions.RightToLeft);
foreach (Match match in matchResult) result.Add(match.Groups[1].Value);
matchResult = Regex.Matches(content, MatchHtmlRule, RegexOptions.IgnoreCase);
foreach (Match match in matchResult) result.Add(match.Groups[1].Value);
return result;
}
自己编译生成一个可执行文件,本地部署就好啦