private static MarkdownDocument ParseMarkdownDocument(MarkdownFile markdownFile) { var pipeline = markdownFile.Project.GetMarkdownPipelineFor(markdownFile.Path); var markdown = markdownFile.ReadAllText(); return(Markdig.Markdown.Parse( markdown, pipeline)); }
private static (MarkdownDocument, string newLine) ParseMarkdownDocument(MarkdownFile markdownFile) { var pipeline = markdownFile.Project.GetMarkdownPipelineFor(markdownFile.Path); var markdown = markdownFile.ReadAllText(); var document = Markdig.Markdown.Parse( markdown, pipeline); return(document, DetectNewLineByFirstOccurence(markdown)); }