lukeed/tidyPublic

fix: match Prettier code spans

Prettier writes a code span with the fewest backticks that no run
inside matches, and pads it with a space only where the content
starts or ends with a backtick, or with a space on both sides.
Copying the source kept extra backticks and padding.
LELuke Edwards authored
112e349Patch
Parent8cea2e0
2 files changed+51-2
StackedSplit
crates/tidy/src/markdown/writer.rs+43 −2
crates/tidy/tests/markdown.rs+8 −0