markdown-include
A Python-Markdown extension which provides an 'include' function
Decision gist · record as of 2026-08-14
Yes, if you need file inclusion in Markdown. The package is stable, has low install friction, no known vulnerabilities, and solves a real problem for modular documentation. The dormant maintenance is a minor concern—monitor compatibility with future markdown releases—but the simple scope suggests it is unlikely to break for routine use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.7.
- Requires markdown to be installed as a runtime dependency.
- Low friction: pure Python wheel with a single runtime dependency on markdown.
License · maintenance · safety
copyleft license (copyleft) — Licensed under GNU General Public License v3 (GPLv3) (copyleft). Any project that includes this package must comply with GPLv3 terms, including making source code available under the same license if you distribute the combined work.
last release 2023-02-07 (1284 days) · last repo commit 2024-05-10 · 115 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 278,734 downloads/mo, #8,131 on PyPI
Alternatives
Verify before relying
pip install markdown-include
import markdown
html = markdown.markdown(source, extensions=['markdown_include.include'])
# In Markdown files, use: {!filename!}- Whether the package works correctly with recent versions of markdown beyond version 3.4.
- Whether the dormant maintenance status (last commit 2024-05-10, last release 2023-02-07) poses a risk for future Python or markdown compatibility.
What it is and what it does
Markdown-Include is a Markdown extension that adds an include mechanism similar to LaTeX's \input or C's #include preprocessor. It lets you reference external files within Markdown using the {!filename!} syntax, and those files are inserted and processed as part of the document before Markdown rendering. This is useful for breaking large documentation into smaller, reusable pieces and for embedding code snippets or shared content blocks.
The extension supports selective line inclusion (via lines=1 3 8-10 syntax), recursive includes, and heading-depth inheritance so that included files' headings adjust to their context. It depends only on markdown and is configured either programmatically or via MkDocs YAML. The package is marked Production/Stable and has been in use since its first release in 2015, though it has entered a dormant maintenance phase.
Use it for
- Modularize large documentation projects by splitting content into separate files and including them from a main document.
- Embed code snippets or examples from source files into documentation without manual copy-paste.
- Reuse common sections (e.g., disclaimers, headers, footers) across multiple Markdown documents.
- Build MkDocs sites where documentation is composed from multiple source files with a single base_path.
- Include specific line ranges from files to show only relevant portions of code or configuration.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need file inclusion in Markdown.
The package is stable, has low install friction, no known vulnerabilities, and solves a real problem for modular documentation. The dormant maintenance is a minor concern—monitor compatibility with future markdown releases—but the simple scope suggests it is unlikely to break for routine use.
Install
markdown-include on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency on markdown. Maintenance is dormant—last release was 2023-02-07—but the package is marked Production/Stable and has no known vulnerabilities, so it is unlikely to require active updates for basic use.
Requires Python >=3.7. Requires markdown to be installed as a runtime dependency.
License in practice
Licensed under GNU General Public License v3 (GPLv3) (copyleft). Any project that includes this package must comply with GPLv3 terms, including making source code available under the same license if you distribute the combined work.
Quickstart
pip install markdown-include
import markdown
html = markdown.markdown(source, extensions=['markdown_include.include'])
# In Markdown files, use: {!filename!}
Verify before relying
- Whether the package works correctly with recent versions of markdown beyond version 3.4.
- Whether the dormant maintenance status (last commit 2024-05-10, last release 2023-02-07) poses a risk for future Python or markdown compatibility.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagemarkdown |
| Maintenance | Dormant 1,284 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 278,734 / month, #8,131 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Programming Language :: PythonTopic :: Internet :: WWW/HTTP :: Site ManagementTopic :: Software Development :: DocumentationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: FiltersTopic :: Text Processing :: Markup :: HTML |
Evidence: markdown_include-0.8.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “markdown include files”
- markdown-includeAdds an include directive to Python-Markdown that lets you embed the…
- mdx-includeA Markdown extension that embeds local or remote files into Markdown…
- mkdocs-include-markdown-pluginA MkDocs plugin that includes content from Markdown files or other…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also mdx-include · sphinx_mdinclude · markdownlit · mdx-truly-sane-lists · pymdown-extensions · mkdocs-include-markdown-plugin · python-markdown-math · Markdown · strip-markdown · mkdocs-autorefs