Markdown rot is real
Markdown that has been pasted between Slack, Notion, GitHub, AI chats, and your IDE accumulates junk: zero-width spaces, mixed list markers, inconsistent heading levels, broken tables, smart quotes, ghost backticks, double newlines everywhere. Our Markdown cleaner fixes all of it in one pass.
It runs a configurable lint and auto-fix pipeline based on the same rules used by markdownlint and remark, plus our own AI-workflow rules: stripped invisible characters, normalized fence languages, deduplicated trailing whitespace, and consistent heading depth.
What it cleans
- Unicode artifacts: zero-width spaces, BOMs, smart quotes
- Inconsistent list markers (mixes of -, *, +) normalized to one
- Heading levels — promoted/demoted to keep a sensible hierarchy
- Code fences without language hints, and unclosed fences
- Broken or mismatched table pipes
- Excess blank lines and trailing whitespace
- HTML residues that snuck in from copy-paste
Use it as the last step before saving any AI-generated Markdown into your knowledge base, or as a CI-style check before publishing.