lukeed/tidyPublic

feat: format embedded JSON

When the hook declines, JSON in HTML and XML scripts, Vue blocks
and Markdown code blocks is formatted by tidy's own formatter, as
style sheets already are. It prints inside the request's indents,
as a hook answers, and matches Prettier.
LELuke Edwards authored
f72666cPatch
Parentc0702b5
9 files changed+90-12
StackedSplit
crates/tidy/src/embed.rs+16 −0
crates/tidy/src/html/mod.rs+2 −0
crates/tidy/src/html/print.rs+6 −1
crates/tidy/src/json/mod.rs+21 −3
crates/tidy/src/options.rs+10 −5
crates/tidy/src/xml/print.rs+5 −1
crates/tidy/tests/json.rs+27 −0
crates/tidy_cli/src/main.rs+2 −1
crates/tidy_napi/src/lib.rs+1 −1