Markdown normalization for Bake projects. It joins soft source line breaks in Markdown files while preserving explicit hard breaks, code, and block boundaries.
Hard-wrapped paragraphs are difficult to edit consistently. This crate uses the base-markdown syntax tree and serializer so normalization follows Markdown structure instead of changing lines with regular expressions.
Add the crate to the project's private bake/ package and regenerate its task links:
cargo bake --regenerate
cargo add --manifest-path bake/Cargo.toml bake-markdown
cargo bake --regenerateNormalize one or more files relative to the project root:
cargo bake markdown:normalize readme.md context/guide.mdRust callers can use bake_markdown::normalize_document directly.
Prepare a release with cargo bake cargo:release:patch (or minor, major, or bump --version X.Y.Z) from a clean checkout of main; it bumps the version, commits with the Release: vVERSION trailer, validates the candidate, and opens the pull request. After review and merge, GitHub Actions publishes the release when the configured crates-io environment approves it. Follow the shared Releasing skill for the standard process.
See releases.md for the full release history.
- Require
bake0.20 or later, instead of 0.19 or later, so that Cargo resolves this crate to the samebakeas a task package that requiresbake0.20.2. In a workspace whoserust-versionis below the 1.88 thatbake0.20.2 declares, Cargo resolved the old requirement tobake0.19.2, which declares none, and the task package failed to compile against twobakeversions.
- Normalize through
base_markdown::normalize_markdown, which now owns the normalization rules, somarkdown:normalizeand other tools built onbase-markdown, such asbake-readme, write identical Markdown. Requiresbase-markdown0.1.3. - Raise the minimum supported Rust version in
rust-versionfrom 1.85 to 1.88, as the let-chains inbake-macros0.20 already require.
- Depend on
base-markdownunder thebase-rsorganization, replacingcore-markdown. Callers passing explicitParseOptionsor naming parser errors must use the corresponding types frombase-markdown.
base-markdown provides the parser and serializer used by this crate.
Please open an issue or pull request on GitHub.
Run cargo bake agent:context:install to install shared context and skills. Read .agents/context/index.md to find relevant guides, follow agents.md if present, and apply skills under .agents/skills/. The installer preserves repository-owned agents.md; it does not create or regenerate that file.