About the Markdown Formatter
Markdown allows several spellings for the same thing, and files edited by many people end up mixing them. Prettier's Markdown printer (CommonMark with GitHub-flavoured extensions) picks one: setext headings underlined with === become # headings, bullet markers are unified to -, emphasis uses _ and strong emphasis **, and blank lines are inserted around headings, lists and code blocks where needed.
The most visible improvement is tables: columns are padded so the pipes line up, and alignment markers like :-: are kept. Prose wrap controls paragraphs: Preserve keeps your line breaks, Wrap at width re-flows text to the print width (good for plain-text readers and diffs), and Unwrap puts each paragraph on one line (good for editors with soft wrap).
Fenced code blocks keep their content verbatim. The rendered HTML of the document stays the same, only the source changes. Front matter in --- YAML blocks is preserved. Use the Markdown Preview tool to check the rendered result.
How to use it
- Paste Markdown or open a .md file.
- Choose a prose wrap mode and print width.
- Review headings, lists and tables in the output.
- Copy or download the formatted file.