lukeed/tidyPublic

fix: count escaping backslashes

A text event that starts right after a backslash escape gets the
backslash written back. The check looked at one byte, so in `\\&x;`,
where the backslash is itself escaped, it wrote a third one. Only an
odd run of backslashes escapes the next character.
LELuke Edwards authored
07c9d7dPatch
Parent389520a
2 files changed+21-6
StackedSplit
crates/tidy/src/markdown/writer/mod.rs+14 −6
crates/tidy/tests/markdown.rs+7 −0