sphinx-markdown-builder
A Sphinx extension to add markdown generation support.
What it is and what it does
sphinx-markdown-builder is a Sphinx extension that adds Markdown as an output format alongside Sphinx's standard HTML and other builders. Instead of generating only HTML documentation, you can use the sphinx-build command with the markdown builder to produce Markdown files directly from your reStructuredText source. It depends on Sphinx, tabulate, and docutils—all widely used documentation and data-processing libraries.
The extension is configured through your Sphinx conf.py file and supports several options to control output: anchor generation for section references, metadata injection (author, copyright, version), custom link prefixes and suffixes for cross-references, file extension customization, bullet-point style, and GitHub-flavored Markdown output. This makes it useful for projects that want to maintain documentation in both Markdown and HTML, or to generate Markdown for publishing to platforms like GitHub that natively render Markdown.
Use it for:
- Generate Markdown documentation from reStructuredText for publishing to GitHub or GitLab wikis.
- Maintain a single reStructuredText source and build both HTML and Markdown outputs in CI/CD pipelines.
- Convert existing Sphinx projects to Markdown format for use in static site generators or content management systems.
- Create Markdown API documentation with anchored section links for embedding in GitHub README files.
- Build Markdown versions of technical documentation for platforms that prefer or require Markdown input.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Sphinx extension that generates Markdown output from reStructuredText documentation, allowing you to build Markdown files alongside or instead of HTML using the standard sphinx-build command.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real problem for projects that need Markdown output from Sphinx documentation. The MIT license is permissive. Install it if you need to generate Markdown from reStructuredText or want Markdown as an alternative Sphinx builder.
Install
sphinx-markdown-builder on PyPI
pip
pip install sphinx-markdown-builderuv
uv add sphinx-markdown-builderpoetry
poetry add sphinx-markdown-builderInstalling sphinx-markdown-builder
Before you install
Low friction: pure Python wheel with three stable runtime dependencies (sphinx, tabulate, docutils). Actively maintained with a recent release; last commit 2026-08-13.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license in distributions.
Quickstart
pip install sphinx-markdown-builder==0.6.10
# In conf.py:
extensions = ["sphinx_markdown_builder"]
# Then build:
sphinx-build -M markdown ./docs ./build
Requires Sphinx and its dependencies to be installed; works with Python 3.7 or later.
Verify before relying
- Whether markdown output preserves all semantic information from reStructuredText (e.g., cross-references, directives, code highlighting).
- Compatibility with recent Sphinx versions beyond what the fact sheet indicates.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — sphinx, tabulate, docutils |
| Maintenance | actively maintained — 156 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 589,151/month — #5,864 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinx_markdown_builder-0.6.10-py3-none-any.whl
Keywords: sphinx, sphinx-extension, markdown, docs, documentation, builder
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
sphinx-llmSphinx extensions that generate LLM-consumable…
permissive · top 15,000 on PyPI
sphinx_mdincludeSphinx extension that lets you include and…
permissive · top 15,000 on PyPI
sphinxcontrib-confluencebuilderSphinx extension that converts reStructuredText…
permissive · top 15,000 on PyPI
sphinxcontrib-shellcheckA Sphinx extension that automatically lints…
permissive · top 15,000 on PyPI
sphinx-markdown-tablesAdds markdown table support to Sphinx…
copyleft · top 15,000 on PyPI
sphinxcontrib-googleanalyticsAdds Google Analytics tracking to…
permissive · top 15,000 on PyPI
m2r2Converts markdown files with embedded…
permissive · top 15,000 on PyPI
sphinx-jinjaA Sphinx extension that lets you embed Jinja2…
permissive · top 5,000 on PyPI
sphinx-substitution-extensionsAdds substitution support to Sphinx directives,…
permissive · top 15,000 on PyPI
sphinx-toolboxSphinx-toolbox extends Sphinx with a collection…
permissive · top 15,000 on PyPI