{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"Markup","url":"https://skillfed.io/packages/category/text-processing-markup"},{"label":"Documentation","url":"https://skillfed.io/packages/category/documentation"}],"enrichment":{"capability":"Mdformat is a CommonMark-compliant command-line Markdown formatter and Python library that enforces consistent style across Markdown files.","skillfed_tags":["markdown-formatter","commonmark","cli-tool"],"use_cases":["Enforce consistent Markdown style across a documentation repository as part of CI/CD or pre-commit hooks.","Format Markdown files in bulk before committing to version control to maintain a uniform code style.","Validate that Markdown files conform to CommonMark specification without altering their rendered meaning.","Integrate Markdown formatting into Python-based documentation generation or build pipelines.","Check Markdown formatting in pull requests without applying changes, using the --check flag."],"what_it_does":"Mdformat is a pure-Python Markdown formatter built on the markdown-it parser that enforces CommonMark compliance across your Markdown files. It works as both a standalone command-line tool and a Python library, making it suitable for CI/CD pipelines, pre-commit hooks, and programmatic use. The formatter is opinionated about style\u2014it normalizes formatting to a single canonical form\u2014and validates that its changes don't alter the rendered HTML output.\n\nThe tool supports extensibility through plugins for non-CommonMark dialects like GitHub Flavored Markdown, MyST, and others. It can format files in place, check formatting without modifying files, and read from stdin. Unlike Node.js-based alternatives, mdformat requires no additional runtime beyond Python itself, making it lightweight for Docker images and environments where Python is already available.","worth_installing":"Yes. Mdformat is actively maintained, has minimal dependencies, supports current Python versions, carries no known vulnerabilities, and is MIT-licensed. It is well-suited for projects that need CommonMark-compliant Markdown formatting in CI/CD or as a pre-commit hook. Install it if you want a lightweight, pure-Python formatter; consider its plugin ecosystem if you need support for non-CommonMark dialects."},"id":"mdformat","links":{"html":"https://skillfed.io/packages/mdformat","md":"https://skillfed.io/packages/mdformat.md","pypi":"https://pypi.org/project/mdformat/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-16","license_spdx":"MIT","license_treatment":"permissive","name":"mdformat","python_support":"supports_current","summary":"CommonMark compliant Markdown formatter"},"popularity":{"monthly_downloads":2899273,"position":2830,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
