Skip to content

Align Markdown documents with make fmt formatter output #316

@leynos

Description

@leynos

Summary

make fmt currently cannot be used as a clean documentation gate because the
Markdown formatting step rewrites existing documents and then fails with
MD013/line-length errors. The affected documents need to be reviewed and
updated so their content intentionally reflects the formatter’s style rather
than leaving every branch to restore unrelated Markdown churn.

Affected documents

The current formatter run reports line-length failures in:

  • docs/netsuke-design.md
  • docs/ortho-config-users-guide.md
  • docs/rstest-bdd-users-guide.md
  • docs/rust-doctest-dry-guide.md
  • docs/rust-testing-with-rstest-fixtures.md
  • docs/snapshot-testing-in-netsuke-using-insta.md
  • docs/translators-guide.md

The failure was observed via:

make fmt

make fmt runs:

cargo fmt --all
mdformat-all

The Rust formatting check passes, but mdformat-all invokes Markdown
formatting/linting and reports MD013/line-length violations after rewriting
documentation.

Problem

This creates two practical issues:

  • Feature branches that touch documentation cannot rely on make fmt as a
    clean, all-or-nothing formatting gate.
  • Agents and contributors must restore unrelated Markdown rewrites before
    committing otherwise scoped changes, which makes review noisier and weakens
    confidence in documentation formatting.

Required work

Update the affected documents so they conform to the repository’s formatter and
Markdown lint expectations.

The work should include:

  • Reviewing the formatter changes rather than applying them blindly.
  • Preserving technical meaning, examples, diagrams, tables, and code blocks.
  • Wrapping prose to the documented 80-column style where appropriate.
  • Using scoped markdownlint disables only where wrapping would damage
    readability or correctness, such as generated examples, long URLs, tables, or
    Mermaid syntax.
  • Confirming that the formatter’s output is acceptable and stable.

Acceptance criteria

  • make fmt exits successfully without leaving unrelated Markdown churn.
  • make markdownlint exits successfully.
  • make nixie exits successfully.
  • The affected documents still read correctly after reflowing.
  • Any intentional exceptions are narrowly scoped and documented inline.

Notes

This issue is about bringing existing documentation into alignment with the
formatter. It should not change Rust code or alter product behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions