public static IFileWithKnownFormatSync <Markdown, Markdown> AsMarkdownFile(this AbsolutePath path) { return(path.AsFile(abs => new Markdown(abs.ReadLines()), (abs, markdown) => abs.WriteAllLines(markdown.Lines))); }
public static IFileWithKnownFormatSync <Html, Html> AsHtmlFile(this AbsolutePath path) { return(path.AsFile(abs => new Html(abs.ReadLines()), (abs, html) => abs.WriteAllLines(html.Lines))); }