Install
openclaw skills install @terrycarter1985/md-formatterFormat and lint markdown files for consistency and readability. Use when Codex needs to normalize markdown documents, fix heading levels, standardize link formats, add missing alt text, or apply consistent formatting conventions across markdown files. Triggers include "format markdown", "clean up this md", "lint markdown", "normalize headings in this file".
openclaw skills install @terrycarter1985/md-formatterFormat and lint markdown files with consistent conventions.
Run the formatter script on a file:
python3 scripts/format_md.py <file.md>
The script performs:
#, ensure no level skips (e.g., # → ###), convert ===/--- underlined headings to # style.<https://url> to [url](https://url) when appropriate, standardize bare URLs.**bold** over __bold__, *italic* over _italic_.Read the markdown file to understand its current state.
Execute scripts/format_md.py with the target path. Check the diff output.
Read the formatted file to confirm changes are correct and no content was accidentally altered.
For complex documents, manually review or adjust formatting the script doesn't cover.
See references/heading-syntax.md for markdown heading specification details.