lukeed/tidyPublic

fix: keep emphasis nesting

Emphasis nested in other emphasis gets `*`. When it opens right after
a `**`, the two merge into `***`, which nests the other way, so
`***_a_***` came out as `_***a***_`. Prettier has the same bug. An
emphasis mark right after a `*` now uses `_` when no word touches it.
LELuke Edwards authored
c02d72ePatch
Parent89b4e63
5 files changed+29-6
StackedSplit
crates/tidy/examples/markdown_events.rs+14 −0
crates/tidy/src/markdown/options.rs+2 −1
crates/tidy/src/markdown/writer/inline.rs+8 −4
crates/tidy/src/markdown/writer/mod.rs+3 −1
crates/tidy/tests/markdown.rs+2 −0