mdformat
« Back to VersTracker
Description:
CommonMark compliant Markdown formatter
Type: Formula  |  Latest Version: 1.0.0@0  |  Tracked Since: Oct 12, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: markdown formatter documentation cli python
Install: brew install mdformat
About:
mdformat is a command-line tool and Python package that formats Markdown files to ensure consistent styling. It is designed to be opinionated and highly extensible, allowing plugins to handle formatting for specific elements like tables or code blocks. This tool helps teams maintain clean, readable documentation with minimal effort.
Key Features:
  • CommonMark compliant formatting
  • Plugin architecture for extensions
  • Preserves code block content
  • GitHub Flavored Markdown support
Use Cases:
  • Standardizing documentation style across a project
  • Pre-commit hooks for automated Markdown linting
  • Formatting Python docstrings and README files
Alternatives:
  • Prettier – Prettier is a general-purpose formatter that supports Markdown but is heavier and less Python-focused.
  • pre-commit – pre-commit is a framework for managing hooks, often used to run mdformat automatically.
Version History
Detected Version Rev Change Commit
Oct 12, 2025 3:14pm 0 VERSION_BUMP 0cb0732a
Dec 21, 2024 5:46am 0 VERSION_BUMP 08527498
Dec 20, 2024 10:20pm 0 VERSION_BUMP a3e19269
Nov 19, 2024 5:32pm 0 VERSION_BUMP 1ab9f413
Nov 19, 2024 5:11pm 0 VERSION_BUMP 7ff319f4
Oct 11, 2024 10:44pm 0 VERSION_BUMP 08dc496d
Oct 11, 2024 3:02pm 0 VERSION_BUMP 9c7fc817