skillfed

mdformat_deflist

An mdformat plugin for markdown-it-deflist.

mdformat-deflist v0.1.4 92.8K downloads/30d#13,420 on PyPI1
Permissive license AGING released

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-deflist

uv

uv add mdformat-deflist

poetry

poetry add mdformat-deflist

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Tags

mdformat plugin definition listsmarkdown definition list formattermarkdown-it-deflist supportformat definition lists markdownmdformat extension
markdown-formattingplugin

More Python Modules packages