public static void WriteContent(string configFile, string originalFile, string finalFile) { var markdownMaker = new MarkdownMaker(configFile); foreach (var result in FileParser.ReadParagraphFromFile(originalFile) .Select(paragraph => markdownMaker.MarkParagraph(paragraph))) { FileParser.WriteLineToFile(finalFile, result); } }
public string DoMarkdown(Dictionary<string, MarkdownTag> tags, string text) { var markdownMaker = new MarkdownMaker(tags); return markdownMaker.MarkParagraph(text); }