Skip to main content

Crate markdown_prose_hooks

Crate markdown_prose_hooks 

Source
Expand description

Conservatively remove manual line breaks from Markdown prose.

A second implementation of the unwrap, answering to the same conformance corpus as the Python one in src/markdown_prose_hooks/. The corpus is the specification; neither implementation is.

Re-exports§

pub use paragraph::unwrap_markdown_prose;

Modules§

cli
The command line: argument parsing, file walking, reporting, exit codes.
code_span
Inline code spans: the one pattern in the tool that cannot be a regex here.
fuzz
Document generator for the differential fuzzer.
ignore
.unwrapignore patterns and --exclude globs.
label
Label rows: the shapes whose line breaks are layout rather than wrapping.
links
Badge blocks: runs of lines that are nothing but links.
paragraph
The line state machine: the pass that actually rewrites the document.
scan
Structural line matchers: what a line is, before anything decides what to do with it.
transcript
Transcript detection: the one classifier the transform tier cannot pin.

Structs§

UnwrapResult
Result of applying the Markdown prose unwrap pass.