#958 was fixed by allowing up to 65,535 bytes of HTML to be generated from 30,000 bytes of raw Markdown. Although it's possible to exceed 65,535 bytes of HTML with just a few thousand bytes of Markdown, I can only think of extremely contrived examples such as absurdly deeply nested blockquotes. I think 65,535 is sufficient for posts that are limited to 30,000 bytes of Markdown.
However, I'd like that Markdown limit be configurable per category. For example, Preferred length limit for Code Golf posts makes a case for at least doubling that limit. Also, Post body too long but not too long? was close to exceeding the 30,000 character Markdown limit even without the bug, so the Code Reviews category would benefit from a higher limit.
Should we consider switching from text (with a capacity of 65,535 bytes), to mediumtext (that allows up to 16,777,215 bytes)?
- Making this switch for the HTML (the
body field) would allow the Markdown field to go up to 65,535 without risk of exceeding the HTML limit when converted.
- Making this switch for the Markdown field too would allow some categories to be given a limit higher than 65,535.
With reason to exceed 30,000 in both Code Golf and Software Development's Code Reviews category, I like the idea of being able to do more than just double the limit.
#958 was fixed by allowing up to 65,535 bytes of HTML to be generated from 30,000 bytes of raw Markdown. Although it's possible to exceed 65,535 bytes of HTML with just a few thousand bytes of Markdown, I can only think of extremely contrived examples such as absurdly deeply nested blockquotes. I think 65,535 is sufficient for posts that are limited to 30,000 bytes of Markdown.
However, I'd like that Markdown limit be configurable per category. For example, Preferred length limit for Code Golf posts makes a case for at least doubling that limit. Also, Post body too long but not too long? was close to exceeding the 30,000 character Markdown limit even without the bug, so the Code Reviews category would benefit from a higher limit.
Should we consider switching from text (with a capacity of 65,535 bytes), to mediumtext (that allows up to 16,777,215 bytes)?
bodyfield) would allow the Markdown field to go up to 65,535 without risk of exceeding the HTML limit when converted.With reason to exceed 30,000 in both Code Golf and Software Development's Code Reviews category, I like the idea of being able to do more than just double the limit.