Skip to content

Considering switching to a larger text field for post bodies #2112

Description

@trichoplax

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions