Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 public string DoMarkdown(Dictionary<string, MarkdownTag> tags, string text)
 {
     var markdownMaker = new MarkdownMaker(tags);
     return markdownMaker.MarkParagraph(text);
 }