Example #1
0
        public static HtmlFile HtmlToMarkdown(MarkdownFile file)
        {
            string str = null;
            if (file.Text != null)
            {
                str = Regex.Replace(file.Text, @"\\<(.+?)\\>", "&lt;$1&gt;");
                str = Regex.Replace(str, @"\\([_`])", "$1");
            }
            var head = new HtmlFile(str, file.TypeTags);
            foreach (var e in file.СhildrenFiles)
                head.Add(HtmlToMarkdown(e));

            return head;
        }
Example #2
0
 public void Add(HtmlFile child)
 {
     childrenFiles.Add(child);
 }