Back to Prettier

17746

changelog_unreleased/markdown/17746.md

3.8.4445 B
Original Source

Fix blank lines between list items and nested sub-lists being removed in Markdown/MDX (#17746 by @byplayer)

Prettier was removing blank lines between list items and their nested sub-lists, converting loose lists into tight lists and changing their semantic meaning.

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

  - b

- c


  - d

<!-- Prettier stable -->
- a
  - b
- c
  - d

<!-- Prettier main -->
- a

  - b

- c

  - d