Closed atifaziz closed 8 years ago
Using Path.ChangeExtension to replace the extension:
Path.ChangeExtension
// replace extension with `md` extension markdownPath = Path.ChangeExtension(xmlPath, ".md");
Regex seemed a bit of an overkill for this:
Regex
// replace the `xml` extension with `md` extension markdownPath = Regex.Replace(xmlPath, @"\.xml$", ".md", RegexOptions.IgnoreCase);
Rebased on top of master so line-endings should now be normalized.
Sorry, you might need to rebase it again, or merge it after my previous merge.
Okay, rebased once more.
@atifaziz Thank you very much! :+1:
Using
Path.ChangeExtension
to replace the extension:Regex
seemed a bit of an overkill for this: