-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 3.1.1
Playground link
--parser markdown
--tab-width 4
--prose-wrap alwaysInput:
a a
b b
c c
Doc:
[
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:
prettier/src/document/printer.js
Lines 442 to 443 in bab8922
| // Expects doc.parts to be an array of alternating content and | |
| // whitespace. The whitespace contains the linebreaks. |
I haven't found user-facing problem yet. I found it investigating #15836 (comment).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.