mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
StackOverflowException is throw when converting special markdown to HTML #418
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leonyang12 on GitHub (Dec 7, 2020).
We use Markdig in our code to convert Markdown to HTML. It works perfect in most cases w.r.t. to performance. Recently we received reports that the library hangs and throws StackOverflowException when processing some special markdowns.
Here are the sample code:
`string input = ;
var pipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().Build();
string result = Markdown.ToHtml(input, pipeline);`
@xoofx, I wouldn't paste the markdown payload here due to security reason, please let me know the best option to share it out to continue investigation.
@xoofx commented on GitHub (Dec 8, 2020):
Could you compile a local version of Markdig, debug it with your markdown and try to extract a smaller repro that you could post?
@MihaZupan commented on GitHub (Dec 8, 2020):
Feel free to share the input via any contact on my profile.
@leonyang12 commented on GitHub (Dec 8, 2020):
@xoofx , thanks for the quick response. I reached out to @MihaZupan and shared the markdown input with repro.
@leonyang12 commented on GitHub (Dec 10, 2020):
@MihaZupan , has there been any update with investigation?
@leonyang12 commented on GitHub (Jan 13, 2021):
@xoofx , will you be able to review @MihaZupan 's fix? Thanks
@leonyang12 commented on GitHub (Jan 15, 2021):
@xoofx, when can we expect a new version with the fix?