private static string GetFileName(string articleUrl) { if (articleUrl.Length > articleUrl.LastIndexOf("/") + 1) return articleUrl.Substring(articleUrl.LastIndexOf("/") + 1).Replace(".html", string.Empty) + ".md"; return "path_error"; }