prettier/prettier

markdown: row indented GFM table rendering idempotency

開放

#19,847 建立於 2026年8月14日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (4,988 個分叉)batch import
help wantedlang:markdown

倉庫指標

星標
 (52,211 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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: https://github.com/oxc-project/oxc/issues/25612

貢獻者指南