mkdocs-github-admonitions-plugin
Convert GitHub admonitions to mkdocs syntax when building docs.
What it is and what it does
This is a MkDocs plugin that solves a markdown compatibility problem: GitHub and MkDocs each support admonitions, but with incompatible syntax. GitHub uses `> [!TYPE]` blocks while MkDocs uses `!!! type` blocks. The plugin intercepts your markdown during the build process and converts GitHub-style admonitions to MkDocs syntax, so you can write admonitions once in GitHub's format and have them render correctly in both places.
The plugin supports GitHub's admonition types (note, tip, important, warning, caution) and also GitLab alerts. It handles edge cases like mixed case types and preserves content including inline code and nested lists. Two GitHub types (caution, important) map to MkDocs equivalents (danger, warning) with the original title preserved. The plugin is lightweight, depending only on mkdocs itself, and requires Python 3.8 or later.
Use it for:
- Write documentation in a single markdown source that displays admonitions correctly on GitHub and in your built MkDocs site without duplication.
- Migrate existing GitHub README admonitions into MkDocs documentation while keeping the same markdown syntax.
- Maintain consistent admonition styling across GitHub-hosted projects and their generated documentation sites.
- Use GitLab alerts in markdown and have them automatically converted for MkDocs builds.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A MkDocs plugin that converts GitHub-flavored admonitions (using `> [!TYPE]` syntax) to MkDocs-compatible admonitions so the same markdown renders correctly in both GitHub and built documentation.
Yes, if you maintain documentation in both GitHub and MkDocs. The plugin solves a real friction point—write-once admonitions that work everywhere—with low install friction and no security concerns. The aging maintenance status (438 days since last release) is not a blocker for a stable, focused tool, but verify it still works with your MkDocs version before relying on it for a new project.
Install
mkdocs-github-admonitions-plugin on PyPI
pip
pip install mkdocs-github-admonitions-pluginuv
uv add mkdocs-github-admonitions-pluginpoetry
poetry add mkdocs-github-admonitions-pluginInstalling mkdocs-github-admonitions-plugin
Before you install
Low friction: pure Python wheel with a single runtime dependency on mkdocs. Maintenance status is aging—last release was 438 days ago—but the repository remains active and unarchived, suggesting the plugin is stable rather than abandoned.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install mkdocs-github-admonitions-plugin
Then add to mkdocs.yml:
plugins:
- gh-admonitions
Now write GitHub admonitions in your markdown:
> [!TIP]
> This will render on GitHub and in built MkDocs pages.
Verify before relying
- Whether GitLab alerts support is fully tested and documented (mentioned as added but not detailed in the excerpt).
- Whether the plugin works with all MkDocs Material theme versions or has specific version constraints.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — mkdocs |
| Maintenance | aging — 438 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 472,596/month — #6,475 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mkdocs_github_admonitions_plugin-0.1.1-py3-none-any.whl
Keywords: admonition, github, material, mkdocs
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
markdown-calloutsAdds a cleaner block-level syntax to Markdown…
permissive · top 15,000 on PyPI
mdformat-mkdocsAn mdformat plugin that formats Markdown for…
permissive · top 15,000 on PyPI
mkdocs-videoA MkDocs plugin that embeds videos in…
permissive · top 15,000 on PyPI
mkdocs-jupyterConverts Jupyter notebooks and Python scripts…
permissive · top 15,000 on PyPI
mkdocstrings-python-legacyA legacy Python documentation handler for…
permissive · top 15,000 on PyPI
mdformat-gfm-alertsA plugin for mdformat that formats GitHub…
permissive · top 15,000 on PyPI
mkdocs-include-markdown-pluginA MkDocs plugin that includes content from…
permissive · top 15,000 on PyPI
mkdocs-techdocs-coreBundles Spotify's TechDocs defaults—themes,…
permissive · top 15,000 on PyPI
mkdocstringsAn MkDocs plugin that automatically generates…
permissive · top 5,000 on PyPI
mkdocs-git-revision-date-pluginAdds a Git-based revision date to MkDocs…
permissive · top 15,000 on PyPI