Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

62 line long comment results in Index out of bounds exception #738

Closed
SebastianRaffel opened this issue Sep 7, 2023 · 1 comment
Closed
Labels

Comments

@SebastianRaffel
Copy link
Contributor

SebastianRaffel commented Sep 7, 2023

Markdown.Parse throws an Index was outside the bounds of the array. Exception when it parses a markdown comment that is exactly 62 lines long. Content does not seem to matter, and add or remove just one line fixes it.

Happens with markdig and markdig (advanced), 0.31.0

Babelmark

babelmark result with markdig

Markdown:

[diagram]: # (
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
)

Note
I did not want to comment out my 62 a; originally it was a mermaid diagram that happened to be 62 lines long.

@xoofx xoofx added the bug label Sep 7, 2023
@MihaZupan
Copy link
Collaborator

This was fixed in 0.32.0 by #710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants