Skip to content

markdown: row indented GFM table rendering idempotency #19847

Description

@leaysgur

Prettier v3.9.6
Playground link

--parser markdown

Input:

# NG

| x | y |
        |---|---|

# NG

| x | y |
    |---|---|

# OK

| x | y |
  |---|---|

# OK

| x | y |
|---|---|

Output:

# NG

| x | y |
|---|---|

# NG

| x | y |
|---|---|

# OK

| x   | y   |
| --- | --- |

# OK

| x   | y   |
| --- | --- |

Second Output:

# NG

| x   | y   |
| --- | --- |

# NG

| x   | y   |
| --- | --- |

# OK

| x   | y   |
| --- | --- |

# OK

| x   | y   |
| --- | --- |

Expected output:

Output the 2nd output from the first run.

Why?

Originally reported: oxc-project/oxc#25612

Activity

  1. added theissue type on Aug 14, 2026
  2. added
    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!
    on Aug 14, 2026
  3. fisker commented on Aug 14, 2026

    @fisker
    Member

    Prettier v3.9.6
    Playground link

    --parser markdown

    Input:

    | x | y |
            |---|---|

    Output:

    | x | y |
    |---|---|
    

    Second Output:

    | x   | y   |
    | --- | --- |
    
  4. LeonxLJX commented on Sep 1, 2026

    @LeonxLJX
  5. LeonxLJX commented on Sep 1, 2026

    @LeonxLJX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:markdownIssues affecting Markdown

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions