Skip to content

Double empty line in markdown lists changes marker #4369

@kachkaev

Description

@kachkaev

Looks like two or more empty lines between both list items in markdown work as a flipper for the marker. * toggles to - and 1. toggles to 1) 🤷‍♀️

Prettier 1.12.1

Input:

* hello1

* hello2


* hello3

* hello4


* hello5

* hello6

Output:

* hello1

* hello2

- hello3

- hello4

* hello5

* hello6

Marker style does not fix itself even after the second format.

Expected behavior:

* hello1

* hello2

* hello3

* hello4

* hello5

* hello6

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!scope:dependencyIssues that cannot be solved inside Prettier itself, and must be fixed in a dependency

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions