Markdown Cleanup Utility (Lists • Indentation • Blank Lines • Fence-Safe)
Processing
Skip fenced code blocks (``` / ~~~)
Trim trailing whitespace
Lists
Normalize unordered markers (* / + → -)
Normalize list indentation (nested lists)
Indent size:
2 spaces
4 spaces
Tab width:
Indentation normalization rewrites list item indentation to
level × indentSize
, preserving blockquote prefixes. Tabs are measured using
tabWidth
for input indentation inference only.
Blank lines
Remove blanks after ATX headers (# ...)
Remove blanks after “:” when a list follows
Remove blanks between list items (continuation-aware)
Collapse consecutive blank lines
Max blank lines:
Clean
Copy Output
Clear
Input
Output