mdformat_deflist
An mdformat plugin for markdown-it-deflist.
What it is and what it does
mdformat-deflist is a plugin that teaches mdformat how to handle definition lists—a Markdown syntax extension for term-and-definition pairs. It wraps the markdown-it-deflist parser and integrates it into mdformat's formatting pipeline, so that when you run mdformat on documents containing definition lists, those lists are parsed correctly and formatted consistently rather than being left as raw text or causing parse errors.
The package is minimal and focused: it exists solely to bridge mdformat and the markdown-it-deflist syntax. You install it alongside mdformat, and it becomes available as a formatting rule. It has no configuration options of its own and depends only on mdformat and mdit-py-plugins, making it a lightweight addition to a Markdown formatting workflow.
Use it for:
- Format Markdown documentation that uses definition lists for glossaries or term explanations.
- Enforce consistent definition list formatting across a documentation project using mdformat.
- Integrate definition list support into a CI/CD pipeline that already uses mdformat for style checks.
- Preserve definition list syntax when auto-formatting Markdown without losing or mangling the structure.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends mdformat with support for parsing and formatting definition lists in Markdown, using the markdown-it-deflist syntax.
Yes, if you use mdformat and need to format Markdown files containing definition lists. The install is frictionless, the license is permissive, and there are no known vulnerabilities. The aging maintenance status (299 days since last release) is a minor concern for a small, focused plugin, but the repository is not archived and the package works with current Python versions. Worth installing for projects that rely on definition list syntax.
Install
mdformat-deflist on PyPI
pip
pip install mdformat-deflistuv
uv add mdformat-deflistpoetry
poetry add mdformat-deflistInstalling mdformat_deflist
Before you install
Low friction install with just two runtime dependencies (mdformat and mdit-py-plugins). Maintenance is aging—last release was 299 days ago—but the repository remains active and the package has no known vulnerabilities.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install mdformat-deflist
Then configure mdformat to use the plugin in your project's pyproject.toml or .mdformat.toml, and run mdformat on Markdown files containing definition lists.
Requires Python 3.10 or later.
Verify before relying
- Whether the plugin is automatically discovered by mdformat or requires explicit configuration
- What definition list syntax variations are supported beyond the standard markdown-it-deflist format
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — mdformat, mdit-py-plugins |
| Maintenance | aging — 299 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 92,823/month — #13,420 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mdformat_deflist-0.1.4-py3-none-any.whl
Keywords: mdformat, markdown, markdown-it
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
mdformat-footnoteAdds footnote parsing and formatting support to…
permissive · top 15,000 on PyPI
mdformat_tablesmdformat-tables is a plugin for mdformat that…
permissive · top 15,000 on PyPI
mdformat-mkdocsAn mdformat plugin that formats Markdown for…
permissive · top 15,000 on PyPI
mdformat-frontmattermdformat-frontmatter is an mdformat plugin that…
permissive · top 5,000 on PyPI
mdformatMdformat is a CommonMark-compliant command-line…
permissive · top 5,000 on PyPI
mdit-py-pluginsExtends markdown-it-py with a collection of…
permissive · top 1,000 on PyPI
mdformat-front-mattersA plugin for mdformat that normalizes YAML,…
permissive · top 15,000 on PyPI
mdformat_mystmdformat-myst is an mdformat plugin that…
permissive · top 15,000 on PyPI
mdformat-gfmMdformat-gfm extends mdformat to format GitHub…
permissive · top 5,000 on PyPI
mdx-truly-sane-listsA Python-Markdown extension that fixes list…
permissive · top 5,000 on PyPI