lukeed/tidyPublic

feat: streaming formatter

Formats Markdown in one pass over pulldown-cmark's events. Block
layout is normalized and inline content is copied as written. Options
start from a preset, Prettier by default, and support ignore
directives, wrapping, and a callback for code blocks.
LELuke Edwards authored
e6bf0efPatch
10 files changed+1844-0
StackedSplit
crates/tidy/markdown.Cargo.toml+20 −0
crates/tidy/src/markdown/directive.rs+79 −0
crates/tidy/src/markdown/mod.rs+59 −0
crates/tidy/src/markdown/options.rs+182 −0
crates/tidy/src/markdown/table.rs+108 −0
crates/tidy/src/markdown/wrap.rs+173 −0
crates/tidy/src/markdown/writer.rs+851 −0
crates/tidy/tests/fixtures/markdown/mixed.md+56 −0
crates/tidy/tests/markdown.rs+193 −0
crates/tidy/tests/markdown_semantics.rs+123 −0