Markdown Formatter

Tidy Markdown into a consistent style, with normalised list markers, clean spacing around headings, and no changes inside code blocks. Keeps code blocks intact.

A Markdown formatter rewrites a Markdown file into a consistent style. It normalises bullet and numbered markers, fixes the spacing around headings, and collapses long runs of blank lines.

Output

                

Paste or type something above.

Questions about markdown formatter

What is the difference between ATX and Setext?
ATX puts hashes before the heading text, while Setext underlines it. ATX is easier to edit.
Does it change code blocks?
No, the contents of a fenced code block are left exactly as written.
Why does it normalise list markers?
Mixed markers in one file read as inconsistent, and normalising them keeps a diff small when the file is edited later.