**Prettier 3.1.1** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBDABB9AdK6BGB6OeY6ZJuxIANCBAA4wCW0AzsqKgE7cQDuABR4IOKVABt+qAJ4c6+bqjABrODADKqALZwAMsyhxkAM0ls4CpavUaGywwHNkMbgFdLIC9uYv3nuAAPBjhuZl1YSQAVUKgeZjgxMwkLOjYnCTgARTcIeFNzTwArNkCNDOzc-KRk1JAARyq4QT4GMTQ2AFojOAATPtoQV1RmCScAYQhtbVRkNAkJQfSoR0yAQRhXZnw3eEFQgyMClM8ACxhtCQB1U+Z4NnswOA1RO+YANzuZObA2eRB3h4AJJQfqwDRgMJMNagjQwGSZY51Bh8CxXJQMOaSaRyQaGCzcGAtVCOGZIzz2bgEuYzbgqXoCKCDFGGGBXZi9GCnZAADgADHRuHBGswhcTSbMaoU6DBUPh2ZzuUgACx0NwWKJypLSkBwbT4Pr9Xp6VArNwkuAAMQg3BmmycWN2EBAAF8XUA) <!-- prettier-ignore --> ```sh --parser markdown --tab-width 4 --prose-wrap always ``` **Input:** <!-- prettier-ignore --> ```markdown a a b b c c ``` **Doc:** <!-- prettier-ignore --> ```markdown [ fill([ "a", line, "a ", markAsRoot(literalline), line, "b", line, "b ", markAsRoot(literalline), line, "c", line, "c", ]), hardline, ] ``` **Expected behavior:** The result doc should preserve the following invaliant: https://github.com/prettier/prettier/blob/bab892242a1f9d8fcae50514b9304bf03f2e25ab/src/document/printer.js#L442-L443 I haven't found user-facing problem yet. I found it investigating https://github.com/prettier/prettier/discussions/15836#discussioncomment-7917975.
Prettier 3.1.1
Playground link
Input:
Doc:
Expected behavior:
The result doc should preserve the following invaliant:
prettier/src/document/printer.js
Lines 442 to 443 in bab8922
I haven't found user-facing problem yet. I found it investigating #15836 (comment).