MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
187 stars 62 forks source link

Depth limit #81

Closed surfarri closed 2 years ago

surfarri commented 2 years ago

Receive the following error when trying against my cloned wiki:

ERR: Something bad happend. System.ArgumentException: Markdown elements in the input are too deeply nested - depth limit exceeded. Input is most likely not sensible or is a very large table. at Markdig.Helpers.ThrowHelper.g__DepthLimitExceeded|16_0() at Markdig.Renderers.RendererBase.WriteChildren(ContainerInline containerInline) at Markdig.Renderers.Html.Inlines.DelimiterInlineRenderer.Write(HtmlRenderer renderer, DelimiterInline obj)

MaxMelcher commented 2 years ago

Hey Scott,

Do you have text with | as separator? In #76 we had the same issue.

Thanks, Max

Get Outlook for iOShttps://aka.ms/o0ukef


From: Scott Farriss @.> Sent: Monday, August 30, 2021 6:17:05 PM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Subscribed @.***> Subject: [MaxMelcher/AzureDevOps.WikiPDFExport] Depth limit (#81)

Receive the following error when trying against my cloned wiki:

ERR: Something bad happend. System.ArgumentException: Markdown elements in the input are too deeply nested - depth limit exceeded. Input is most likely not sensible or is a very large table. at Markdig.Helpers.ThrowHelper.g__DepthLimitExceeded|16_0() at Markdig.Renderers.RendererBase.WriteChildren(ContainerInline containerInline) at Markdig.Renderers.Html.Inlines.DelimiterInlineRenderer.Write(HtmlRenderer renderer, DelimiterInline obj)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/81, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LN6BTP7HCKCFV2ZAZFDT7OVIDANCNFSM5DCGWAWQ.

surfarri commented 2 years ago

Hi Max,

Within the contents of the wiki? If so, then likely yes. Our wiki is very large and there is probably code/data samples along the way that have the pipe character. Was there a solution for #76, or was the fix just to find and remove those characters from the content?

Thanks Scott

MaxMelcher commented 2 years ago

He wrapped the text containing the separator in a code block.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Scott Farriss @.> Sent: Monday, August 30, 2021 6:52:06 PM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Max Melcher @.>; Comment @.> Subject: Re: [MaxMelcher/AzureDevOps.WikiPDFExport] Depth limit (#81)

Hi Max,

Within the contents of the wiki? If so, then likely yes. Our wiki is very large and there is probably code/data samples along the way that have the pipe character. Was there a solution for #76https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/76, or was the fix just to find and remove those characters from the content?

Thanks Scott

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/81#issuecomment-908507236, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LN5S4TLQCUU3NRN36JTT7OZLNANCNFSM5DCGWAWQ.

MaxMelcher commented 2 years ago

You can also run it with --verbose flag. Then you should locate the markdown file and potentially pinpoint the error.

surfarri commented 2 years ago

OK, I'll try to run it that way. There may be too many locations to try and correct in the wiki where the problem occurs, but I really like the tool for my other smaller wikis. Thanks Max!

MaxMelcher commented 2 years ago

If you have an example where it fails, provide it please so we can fix it.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Scott Farriss @.> Sent: Tuesday, August 31, 2021 3:20:28 PM To: MaxMelcher/AzureDevOps.WikiPDFExport @.> Cc: Max Melcher @.>; Comment @.> Subject: Re: [MaxMelcher/AzureDevOps.WikiPDFExport] Depth limit (#81)

OK, I'll try to run it that way. There may be too many locations to try and correct in the wiki where the problem occurs, but I really like the tool for my other smaller wikis. Thanks Max!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/issues/81#issuecomment-909231485, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LNZCGBCNRHXJN3QEASTT7TJJZANCNFSM5DCGWAWQ.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

equitably commented 2 years ago

This seems to be a markdig issue. Here is an example of a table that fails:

Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La
Do|Re|Mi|Fa|Sol|La