xoofx / markdig

A fast, powerful, CommonMark compliant, extensible Markdown processor for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown.ToHtml throws IndexOutOfRangeException

Metalnem opened this issue · comments

Markdown.ToHtml throws an IndexOutOfRangeException when converting the markdown file from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):

var text = File.ReadAllText(path);
var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
Markdown.ToHtml(text, pipeline);

Found via SharpFuzz.