Prettier v3.9.4
Playground link
Input:
- Head
<!-- divider -->
- Body
<!-- divider -->
- Foot
Output:
- Head
<!-- divider -->
- Body
<!-- divider -->
- Foot
Expected output:
- Head
<!-- divider -->
- Body
<!-- divider -->
- Foot
Why?
It is not clear why empty lines are added around the comments. As far as I can see, this is not mentioned in the 3.9.0 release notes.
Prettier v3.9.4
Playground link
Input:
Output:
Expected output:
Why?
It is not clear why empty lines are added around the comments. As far as I can see, this is not mentioned in the 3.9.0 release notes.