# Installer mdformat avec Homebrew, apt, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de mdformat pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:mdformat
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install mdformat
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install mdformat
```

  Preuve: Debian stable package indexes: mdformat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#mdformat
```

  Preuve: nixpkgs package indexes: pkgs/by-name/md/mdformat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mdformat
```

  Preuve: Arch Linux sync databases: mdformat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Faits du paquet

- **Clé du paquet:** brew:mdformat
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/mdformat>
- **Version:** 1.0.0
- **Résumé source:** CommonMark compliant Markdown formatter
- **Page d'accueil:** <https://mdformat.readthedocs.io/en/stable/>
- **Docs amont:** <https://mdformat.readthedocs.io/en/stable/>
- **Licence:** MIT
- **Archive source:** <https://files.pythonhosted.org/packages/3f/05/32b5e14b192b0a8a309f32232c580aefedd9d06017cb8fe8fce34bec654c/mdformat-1.0.0.tar.gz>
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- mdformat (cli)
- mdformat (alias)

## Dépendances

- python@3.14

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur all

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.0.0
- données locales: OK
- dépôt amont: https://mdformat.readthedocs.io/en/stable/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 2020: Version 0.1.0 published to PyPI.
- 2021: Version 0.7.10 added `.mdformat.toml` configuration.
- 2025: Version 1.0.0 published with Python support and CommonMark updates.
- 2026: Homebrew formula tracked stable version 1.0.0.

### Related projects

- The README explicitly compares mdformat with Prettier for Markdown formatting and discusses CommonMark-focused behavior.
- The plugin ecosystem includes mdformat-gfm, mdformat-black, mdformat-toc, mdformat-myst, mdformat-frontmatter, and other official-doc-listed extensions.

### Sources

- <https://github.com/hukkin/mdformat#readme>
- <https://mdformat.readthedocs.io/en/stable/users/changelog.html>
- <https://mdformat.readthedocs.io/en/stable/users/configuration_file.html>
- <https://mdformat.readthedocs.io/en/stable/users/installation_and_usage.html>
- <https://mdformat.readthedocs.io/en/stable/users/plugins.html>
- <https://pypi.org/project/mdformat/>
- source_facts.package-manager


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## Configuration and credential file locations

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.


## Configuration files

- Unix: .mdformat.toml
## Détails de la base source

- **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:** stable

## Autres enregistrements de gestionnaires de paquets

- Debian apt - mdformat - 0.7.22-1: normalized package name match | Debian stable package indexes: mdformat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CommonMark compliant Markdown formatter
- Nix - mdformat: normalized package name match | nixpkgs package indexes: pkgs/by-name/md/mdformat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - mdformat - 1.0.0-2: normalized package name match | Arch Linux sync databases: mdformat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CommonMark compliant Markdown formatter | https://github.com/hukkin/mdformat


## Liens liés

- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/fr/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [python@3.14](https://pkg.so/fr/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [bibtex-tidy](https://pkg.so/fr/brew/bibtex-tidy/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters, pre-commit.
- [cbfmt](https://pkg.so/fr/brew/cbfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters, markdown.
- [shfmt](https://pkg.so/fr/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [black](https://pkg.so/fr/brew/black/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, pre-commit, python.
- [buildifier](https://pkg.so/fr/brew/buildifier/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [isort](https://pkg.so/fr/brew/isort/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, pre-commit, python.
- [astyle](https://pkg.so/fr/brew/astyle/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [oxfmt](https://pkg.so/fr/brew/oxfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, formatters.
- [djhtml](https://pkg.so/fr/brew/djhtml/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, commit, developer, developer-tools, formatter.
- [gersemi](https://pkg.so/fr/brew/gersemi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, commit, developer, developer-tools, formatter.

## Combined YAML source

View the package source record on GitHub. [combined/mdformat.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mdformat.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
