lukeed/tidyPublic

fix: drop nested list blanks

Prettier drops the blank line before a nested list unless a paragraph
or code comes before it. mdtidy kept it whenever it was the only blank
in the item, but a loose item also gets a blank line between any two
children where the second is not a list, so the list stays loose and
the line can go. It still stays where dropping it would make the list
tight, which changes its paragraphs; that case is now a meaning
divergence.
LELuke Edwards authored
dbd119aPatch
Parent35634d2
4 files changed+23-9
StackedSplit
crates/tidy/src/markdown/writer/survey.rs+17 โˆ’5
crates/tidy/tests/markdown.rs+3 โˆ’1
tests/oracle/markdown/divergences.ts+1 โˆ’1
tests/oracle/markdown/divergences/nested-blank.md+2 โˆ’2