-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
In reference to #3025, I'm a little annoyed by this because I've always used hyphens for lists, but in further testing I've discovered that Prettier does not handle mixed list syntaxes well at all.
This behavior is inconvenient at best and an option to override the "preferred" syntax would be ideal.
Prettier 1.10.2
Playground link
Global settings
--parser: markdown
--tab-width: 40My initial edits before Prettier conversion works as expected:
Input:
- waffles
- syrup
- tasty
- viscousOutput:
* waffles
* syrup
* tasty
* viscousAfter conversion, I make further edits to my content, which results in the nested non-standard list items to be rendered differently, and also causes the non-standard root list node items to be rendered as a separate list, but still using the non-standard syntax:
** Input: **
* waffles
* syrup
* tasty
* viscous
- dark
* more waffles
* butter
- oj
- toast** Output: **
* waffles
* syrup
* tasty
* viscous
- dark
* more waffles
* butter
- oj
- toastThere is a linebreak between the root list nodes where Prettier assumes the * and - list syntaxes are two different list contexts.
Expected behavior:
I would expect it to automagically convert the hyphens to asterisks without issue.