Overview of mdformat features and opinions
mastermdformat is a CommonMark compliant Markdown formatter. It enforces a consistent style across Markdown documents with the following opinions:
- Indentation & Whitespace: Ensures consistent indentation and whitespace throughout the document.
- Headings: Always uses ATX style headings (e.g.,
# Heading). - Link References: Moves all link references to the bottom of the document, sorted by label.
- Code Blocks: Reformats indented code blocks into fenced code blocks.
- Ordered Lists: Uses
1.as the ordered list marker whenever possible, including for non-initial list items.
Note on Line Wrapping: By default, mdformat will not change word wrapping. This is intended to support Semantic Line Breaks.