examples/rust/files_transform/README.md
Rust equivalent of the Python files_transform
example.
It walks a directory of markdown files, memoizes the markdown-to-HTML transform per file, and writes one HTML file per markdown input.
cd examples/rust/files_transform
cargo build --release
Run against the sample data from the Python example:
cargo run -- ../../files_transform/data ./output_html
Defaults:
../../files_transform/data./output_htmlDirTarget (the Rust analogue of Python's
localfs directory target): files are written/updated, unchanged files are
skipped, and an output whose source markdown was deleted is removed
automatically on the next run.walk_dir defaults to recursive=False), only
top-level *.md files are processed.pulldown-cmark with GFM options (tables,
strikethrough, tasklists). It is not byte-identical to Python's
markdown-it-py("gfm-like") — notably, pulldown-cmark does not "linkify" bare
URLs (only angle-bracket <https://…> autolinks render).