Example #1
0
        private static MarkdownDocument ParseMarkdownDocument(MarkdownFile markdownFile)
        {
            var pipeline = markdownFile.Project.GetMarkdownPipelineFor(markdownFile.Path);

            var markdown = markdownFile.ReadAllText();

            return(Markdig.Markdown.Parse(
                       markdown,
                       pipeline));
        }
Example #2
0
        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));
        }