OnlineNotes Logo

Markdown Cleanup

Normalize markdown before conversion so docs, release notes, and migration notes keep consistent structure.

Input

Output

When to use this tool

Use this page to normalize headings, list markers, and spacing before you publish markdown.

It helps your team keep output consistent across docs and release notes.

Frequently asked questions

What does cleanup normalize?

The tool standardizes list markers, heading spacing, blank-line density, and trailing whitespace.

Is this safe for existing docs?

The default behavior targets formatting consistency and avoids content rewriting.

Can I review changes before copy?

Yes. You can switch between cleaned markdown, rendered preview, and cleanup summary notes.

Related tools

Markdown cleanup tool for formatting consistency before conversion

This markdown cleanup tool fixes four formatting problems: trailing whitespace, mixed bullet markers, headings with no space after the hash, and runs of blank lines.

Use it on notes copied from chat or from several authors, before you convert them to HTML or commit them. It works line by line and does not understand code blocks, so read the result if your file contains code.

How it works

  1. Paste markdown in the editor. Line endings always become LF, and leading and trailing blank space around the whole document is always removed.
  2. Four checkboxes, all on by default, control the fixes: strip trailing spaces and tabs, change * and + bullets to -, add a space after heading hashes, and reduce three or more line breaks to one blank line.
  3. The result updates as you type or change an option, so the Run cleanup button is only a manual repeat.
  4. The Cleaned view shows the text, Preview renders it, and Summary counts lines before and after and each kind of fix.

Worked example

Input

#Release notes



* Faster export   
+ Fewer errors

Output

# Release notes

- Faster export
- Fewer errors

All four options on. The heading gets its space, the four line breaks become one blank line, both bullets become hyphens, and the three trailing spaces after "export" are removed. The Summary view counts each of these fixes.

Edge cases and limits

  • Fenced code blocks (``` or ~~~) are left exactly as they are, including blank lines and trailing spaces. Indented code blocks are not detected, so a line indented four spaces can still be changed.
  • A hashtag at the start of a line is treated as a heading: "#hashtag" becomes "# hashtag". Horizontal rules such as "* * *" are left alone.
  • Removing trailing whitespace also removes the two spaces that markdown uses for a hard line break. Turn that option off if your text depends on them.
  • Numbered lists, heading case, and blank lines between list items are left alone. Lines holding only spaces collapse only when the trailing whitespace option is on.

When to use it

  • Clean migration notes copied from chat threads into docs.
  • Make list markers match across multi-author release notes.
  • Remove trailing whitespace before committing markdown files.
  • Fix "#Heading" lines that a markdown parser would not treat as headings.