CommonMark compliant Markdown formatter


Mdformat is an opinionated Markdown formatter that can be used to enforce a consistent style in Markdown files.

Mdformat is a Unix-style command-line tool as well as a Python library.

The features/opinions of the formatter include:

 * Consistent indentation and whitespace across the board
 * Always use ATX style headings
 * Move all link references to the bottom of the document (sorted by
 * Reformat indented code blocks as fenced code blocks
 * Use 1. as the ordered list marker if possible, also for noninitial
   list items

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V

Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install mdformat