lukeed/tidyPublic

fix: trim code line ends

Prettier prints each line of a code block with a hard line, and its
printer drops the spaces and tabs before every hard line, so code loses
trailing whitespace even with embedded formatting off. HTML keeps it.
This applies to every preset: trailing whitespace is layout, like the
whitespace mdtidy already trims outside code.
LELuke Edwards authored
60fccc8Patch
Parentb96ab4c
2 files changed+18-11
StackedSplit
crates/tidy/src/markdown/writer.rs+13 −8
crates/tidy/tests/markdown.rs+5 −3