Cleaning up meeting notes that three people wrote
Shared Markdown drifts. One person types * for bullets, another types -, a third pastes a list from somewhere that used +. Headings appear as "Decisions" with a line of === under it in one section and "##Actions" without a space in another. None of this is wrong, but it is hard to read as source and it makes every diff noisy.
Here is a small example. The notes start with "Weekly sync" underlined by "===========", then "* Budget approved" and "+ Hiring paused", then "## Actions ##", then a numbered list where every item is "1.": "1. Ana sends the draft" and "1. Raj books the room". After formatting with bullets as -, the title is "# Weekly sync", followed by one blank line, then "- Budget approved". The "+ Hiring paused" line gets a * marker instead of -, which is the tool keeping your meaning: in Markdown, a change of bullet marker starts a new list, so these were two lists. The heading becomes "## Actions" with a blank line before and after it, and the list reads "1. Ana sends the draft" and "2. Raj books the room".
Notice what did not change. A code block in the notes, even one containing lines that look like "* not a list" or "# not a heading", stays exactly as it was, blank lines and all. A YAML block between --- lines at the very top of the file is left alone. A line that ends with two spaces before more text keeps them, because those two spaces are a line break.
The point of these limits is trust. A formatter that rewrites more than you asked for teaches people to stop using it. This one changes style and leaves content alone, and it was checked on 99 real Markdown files, every one of which rendered the same before and after formatting.
It does have limits. It does not rewrap paragraphs, align table columns or change emphasis markers. Lists inside block quotes keep their original markers. A heading with leading spaces is left as it is, and so is the unusual case of a numbered list whose renumbering changes the width of a number, such as 9 becoming 10, which can shift the indentation that nested content relies on. Documents over one million characters are refused.