Clean up markdown formatting in the file at $1. Do not rewrite prose, change wording, or alter meaning — structure and formatting only.
Read the file, then fix:
- Header levels — make them consistent and properly nested (no skipped levels, e.g. h2 straight to h4).
- Links — fix broken/malformed markdown link syntax
[text](url); flag any link whose target file/anchor you cannot verify instead of guessing a fix. - Table of contents — if one exists, regenerate it to match the current headers (correct entries, order, and nesting). If none exists, do not add one.
- List bullets — make bullet style consistent within each list (pick one of
-,*,+and use it throughout; don't mix). - Trailing whitespace — remove trailing spaces/tabs at line ends.
- Blank lines — collapse 3+ consecutive blank lines down to a single blank line.
Apply fixes with Edit. After editing, output a short bullet-point summary of exactly what was changed (or state that no issues were found).