vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

An option for extending the max buffer size. #143

Closed txdv closed 11 years ago

txdv commented 11 years ago

The current limitation is 16MB. I guess 16MB of text is a lot, Moby Dick in text format is < 1MB. But the generated HTML output COULD be bigger, I AM JUST SAYING. But still, maybe as an option in each buffer struct would make everyone happy, while using the default value of 16MB?

EDIT: MAX_ALLOCATION_SIZE is 16MB, you can do the bufgrow multiple times.