-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Markdown inserts unexpected newline in lists #8004
Copy link
Copy link
Closed
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.status:needs investigationIssues that need additional investigation, e.g. to understand whether the reported behavior is a bugIssues that need additional investigation, e.g. to understand whether the reported behavior is a bug
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.status:needs investigationIssues that need additional investigation, e.g. to understand whether the reported behavior is a bugIssues that need additional investigation, e.g. to understand whether the reported behavior is a bug
If I insert a newline between two top-level list elements, a newline is also inserted between the first top-level element and its children elements (unexpectedly, to my eye).
becomes
I insert the newline between "Nested item 2" and "Top level item 2" intentionally, to keep the the top level items visually distinct, but the effect is slightly ruined by prettier's addition of a newline between "Top level item 1" and "Nested item 1".
That extra insertion doesn't make sense to me, and appears to be a bug.
Playground link is here: https://prettier.io/playground/#...