Skip to content

Should not increase ordered list mark #19339

Description

@fisker

The reason for the length limit is that with 10 digits we start seeing integer overflows in some browsers

https://spec.commonmark.org/0.31.2/#ordered-list-marker

Prettier 2680e80
Playground link

--parser markdown

Input:

999999999. text
999999999. text
999999999. text

Output:

999999999. text
1000000000. text
1000000001. text

Second Output:

999999999. text 1000000000. text 1000000001. text

Expected output:

Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions