Markdown rot is real
Markdown pasted between editors can accumulate extra blank lines or headings glued to paragraphs. The cleaner tidies prose spacing and fixes #Titles missing their space. Indentation and repeated spaces can carry meaning, so they are retained.
It applies a fixed set of whitespace rules, in your browser. It does not rewrite your words, and there is nothing to configure: paste, clean, copy.
What it cleans
- Repeated blank lines in prose, reduced while protecting code blocks
- Headings missing the space after the # (#Title becomes # Title)
- A blank line added before and after every heading
- Code spacing, nested-list indentation and Markdown hard breaks preserved
- A final newline added when missing
Use it as the last step before saving AI-generated Markdown into your knowledge base. It works on whitespace only, so it will not repair broken tables, unclosed code fences or invisible Unicode characters.