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

Bad parsing of deeply nested lists #225

Open
mity opened this issue Apr 12, 2018 · 2 comments
Open

Bad parsing of deeply nested lists #225

mity opened this issue Apr 12, 2018 · 2 comments

Comments

@mity
Copy link

mity commented Apr 12, 2018

Input generated by the following command gets 100 lines:

$ python -c 'print ("".join(map(lambda x: ("  " * x + "* foo\n"), range(1,1000))))'

But when it is passed into hoedown, it generates just 27 lines, so most of the input is somehow ignored.

$ python -c 'print ("".join(map(lambda x: ("  " * x + "* foo\n"), range(1,1000))))' | hoedown | wc -l
27
@uranusjr
Copy link

uranusjr commented Apr 12, 2018

There is a default nesting limit defined to guard against malicious input. You can change to #define’d value on compile time yourself.

@mity
Copy link
Author

mity commented Apr 12, 2018

So shouldn't hoedown write down some error or (at least) exit with non-zero?

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

No branches or pull requests

2 participants