lukeed/tidyPublic

fix: skip empty text events

pulldown-cmark reports the indent of an HTML block inside a list item
as a text event with an empty range. With wrapping on, it started an
empty paragraph, which wrote the item indent alone on a line. Those
two spaces read as a hard break, so a second pass removed the line.
LELuke Edwards authored
8bd31e4Patch
Parent112e349
2 files changed+3-0
StackedSplit
crates/tidy/src/markdown/writer.rs+1 −0
crates/tidy/tests/markdown.rs+2 −0