macOS
brew install mdformatlocal Homebrew formula metadata
brew
CommonMark compliant Markdown formatter. Version 1.0.0 via Homebrew; verified from local package data.
install
brew install mdformatlocal Homebrew formula metadata
sudo apt install mdformatDebian stable package indexes · mdformat · source: deb.debian.org
nix profile install nixpkgs#mdformatnixpkgs package indexes · pkgs/by-name/md/mdformat/package.nix · source: api.github.com
sudo pacman -S mdformatArch Linux sync databases · mdformat · source: geo.mirror.pkgbuild.com
overview
CommonMark compliant Markdown formatter
history
mdformat is an opinionated CommonMark-compliant Markdown formatter available as both a Unix-style command-line tool and a Python library. It formats Markdown documents in place, checks formatting in CI, and exposes plugin hooks for parser extensions and code-block formatting.
The project was published to PyPI in July 2020 as version 0.1.0 and is developed in the hukkin/mdformat GitHub repository. Its README describes the core pitch as enforcing a consistent Markdown style while preserving CommonMark-rendered output.
The changelog shows steady maturation of the 0.7 series: configuration in `.mdformat.toml` arrived in 0.7.10, plugin interfaces evolved in 0.7.19, and version 1.0.0 later removed older Python support, added markdown-it-py v4 support, and added CommonMark 0.31.2 support.
mdformat's adoption is tied to Python packaging and automated formatting workflows. Its official docs show installation with pipx, Python API use, and use as a pre-commit hook by referencing the GitHub repository and pinning a revision.
The plugin docs document a broader ecosystem of mdformat-* packages for GitHub Flavored Markdown, MyST, front matter, table-of-contents generation, code-block formatting with Black, shfmt, gofmt, rustfmt, and related tools. The input facts list availability in Homebrew, Debian, Nix, and Arch-style packaging.
Common CLI usage is `mdformat README.md CHANGELOG.md`, `mdformat .` for recursive formatting, `mdformat -` for standard input, and `mdformat --check` in CI. The tool also exposes a Python API through `mdformat.text()` and `mdformat.file()`.
Configuration is resolved from a TOML file named `.mdformat.toml`, searched upward from the formatted file or from the current working directory for standard input. Command-line arguments take precedence over configuration values.
mdformat is a useful package-history marker for the shift from Markdown rendering tools to Markdown style enforcement. It fills a similar cultural role for Markdown that Black filled for Python: fewer formatting arguments, more reproducible diffs.
Its plugin model matters to packagers because optional behavior is split across separately distributed Python packages. That keeps the core package small but makes environment composition important for users who need GFM, MyST, front matter, or code-block formatters.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.mdformat.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mdformat | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://mdformat.readthedocs.io/en/stable/
install metadata
| Package key | brew:mdformat |
|---|---|
| Version | 1.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mdformat |
| Homepage | https://mdformat.readthedocs.io/en/stable/ |
| Repository | https://github.com/hukkin/mdformat |
| Upstream docs | https://mdformat.readthedocs.io/en/stable |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/3f/05/32b5e14b192b0a8a309f32232c580aefedd9d06017cb8fe8fce34bec654c/mdformat-1.0.0.tar.gz |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mdformat |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mdformat 0.7.22-1
CommonMark compliant Markdown formatter
sudo apt install mdformatmdformat
nix profile install nixpkgs#mdformatmdformat 1.0.0-2
CommonMark compliant Markdown formatter
https://github.com/hukkin/mdformat
sudo pacman -S mdformatsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.