Back to Prettier

19154

changelog_unreleased/markdown/19154.md

3.9.0489 B
Original Source

Fix extra blank line between a list and an indented code block (#19154 by @YBJ0000)

Prettier forced two blank lines whenever an indented code block followed a list. The extra blank line is never semantically required and contradicts Prettier's usual behavior of collapsing consecutive blank lines into a single one.

<!-- prettier-ignore -->
markdown
<!-- Input -->
 -    one

     two

<!-- Prettier stable -->
 -    one


     two

<!-- Prettier main -->
 -    one

     two