skillfed

recommonmark

A docutils-compatibility bridge to CommonMark, enabling you to write CommonMark inside of Docutils & Sphinx projects.

recommonmark v0.7.1 1.2M downloads/30d#4,257 on PyPI342
Permissive license MIT Abandoned released

What it is and what it does

recommonmark is a parser that lets Sphinx and Docutils projects write documentation in CommonMark (Markdown) instead of only reStructuredText. It acts as a bridge between the CommonMark syntax and Docutils' internal document model, allowing you to mix .md and .rst files in the same project and use Sphinx features like cross-references and auto-generated table of contents from Markdown headings.

The package includes AutoStructify, an optional component that can automatically transform Markdown into reStructuredText at build time, with support for features like automatic table-of-contents generation, math formulas, and embedded reStructuredText evaluation. However, the project is now deprecated and archived; its maintainers recommend using an alternative for new work.

Use it for:

  • Adding Markdown documentation files to an existing Sphinx project without rewriting everything in reStructuredText.
  • Using AutoStructify to automatically generate table-of-contents and cross-reference structures from Markdown headings during the Sphinx build.
  • Migrating documentation from a Markdown-based system to Sphinx while keeping Markdown as the source format during transition.
  • Enabling teams familiar with Markdown to contribute to Sphinx-based documentation without learning reStructuredText syntax.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Enables Sphinx and Docutils projects to parse and render CommonMark (Markdown) files alongside reStructuredText, bridging CommonMark syntax to the Docutils document model.

No. The package is abandoned (last commit 2021-05-18) and its maintainers explicitly recommend an alternative. While it has low install friction and no known vulnerabilities, the lack of ongoing maintenance means no compatibility fixes for current Sphinx versions and no security updates.

Install

recommonmark on PyPI

pip

pip install recommonmark

uv

uv add recommonmark

poetry

poetry add recommonmark

Installing recommonmark

Before you install

Low install friction with a pure-Python wheel, but the package is abandoned as of 2021-05-18 with no maintenance since. The maintainers explicitly recommend a replacement for new projects.

License in practice

MIT license permits commercial and private use with minimal restrictions, though the abandoned status means no security or compatibility updates are forthcoming.

Quickstart

pip install recommonmark

# In Sphinx conf.py:
extensions = ['recommonmark']

# Then write .md files alongside .rst in your documentation source.

Requires Sphinx and Docutils; abandoned since 2021-05-18 with no ongoing maintenance or security updates.

Verify before relying

  • Whether existing Sphinx projects using recommonmark will continue to work with current Sphinx versions without compatibility issues.
  • Whether the AutoStructify component's advanced Markdown-to-reStructuredText transformations are still reliable for complex documentation.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — commonmark, docutils, sphinx
Maintenance abandoned — 2,066 days since the last release
Last repo commit (repository archived)
First released
Downloads 1,181,183/month — #4,257 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: recommonmark-0.7.1-py2.py3-none-any.whl

License :: OSI Approved :: MIT License

Tags

markdown support for sphinxcommonmark docutils bridgewrite markdown in sphinx projectsmarkdown to docutils parsersphinx markdown integration
deprecatedmarkdown-to-rst

More Sphinx packages