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