lukeed/tidyPublic

fix: widen lists before code

When an indented code block follows a list, Prettier widens every
marker until the content sits deeper than the code: up to four spaces
after the marker, then up to three before it. Narrowing `-    one`
to `- one` instead put the code inside the last item.

Such a list is also never aligned, nor are lists inside it, and a
bullet list counts as aligned for the ordered lists inside it, as in
Prettier's `isAligned`.
LELuke Edwards authored
f3ce41ePatch
Parent2c4e358
3 files changed+62-5
StackedSplit
crates/tidy/src/markdown/writer/list.rs+46 โˆ’1
crates/tidy/src/markdown/writer/mod.rs+7 โˆ’4
crates/tidy/tests/markdown.rs+9 โˆ’0