Skip to content

StackOverflowException is throw when converting special markdown to HTML #497

@leonyang12

Description

@leonyang12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions