Registry / web-framework / mkdocs-material-extensions

mkdocs-material-extensions

JSON →
library1.3.1pypypi✓ verified 25d ago

This library, `mkdocs-material-extensions`, provides an extension pack for Python Markdown specifically designed to work with the MkDocs Material theme. As of version 1.3 (released November 2023), this project is deprecated and considered obsolete because its core logic has been integrated directly into `mkdocs-material` (version 9.4 and above). Users are strongly advised to migrate to the equivalent functionalities provided by `mkdocs-material` itself. It primarily facilitated inline SVG icons and emoji handling within MkDocs Material documentation.

pip install mkdocs-material-extensions
INSTALL
IMPORT
SIG · MKDOCS-MATERIAL-EX
M
mkdocs-material-extensions
web-frameworkpythonv1.3.1
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

twemoji (for YAML config)
!!python/name:materialx.emoji.twemoji
from materialx.emoji import twemoji
This was the YAML reference for the custom emoji index in `mkdocs.yml`. It is now superseded by `!!python/name:material.extensions.emoji.twemoji` within `mkdocs-material` versions 9.4 and later.
to_svg (for YAML config)
!!python/name:materialx.emoji.to_svg
from materialx.emoji import to_svg
This was the YAML reference for the custom emoji generator in `mkdocs.yml`. It is now superseded by `!!python/name:material.extensions.emoji.to_svg` within `mkdocs-material` versions 9.4 and later.

This quickstart demonstrates the *deprecated* configuration of `mkdocs-material-extensions` in your `mkdocs.yml` file, primarily for enabling inline SVG icons and emoji. The library is now obsolete, and its functionality is integrated directly into `mkdocs-material`. The commented section shows the required changes to migrate your configuration to `mkdocs-material` versions 9.4 and above.

# mkdocs.yml (Deprecated configuration for mkdocs-material-extensions) markdown_extensions: - pymdownx.emoji: emoji_index: !!python/name:materialx.emoji.twemoji emoji_generator: !!python/name:materialx.emoji.to_svg # --- MIGRATION PATH for MkDocs Material v9.4+ (mkdocs.yml) --- # Remove `mkdocs-material-extensions` from your project dependencies. # Update your mkdocs.yml to use the native extensions provided by mkdocs-material: # markdown_extensions: # - pymdownx.emoji: # emoji_index: !!python/name:material.extensions.emoji.twemoji # emoji_generator: !!python/name:material.extensions.emoji.to_svg
Debug
Known issues
breakingThis library is deprecated and obsolete since `mkdocs-material` version 9.4, which now includes this library's functionality directly. Users *must* migrate their `mkdocs.yml` configuration from `materialx.emoji.twemoji` and `materialx.emoji.to_svg` to `material.extensions.emoji.twemoji` and `material.extensions.emoji.to_svg` respectively. Continuing to use this library with `mkdocs-material` versions 9.4+ may lead to unexpected behavior or build issues.
fix
Remove `mkdocs-material-extensions` from your project dependencies (`pip uninstall mkdocs-material-extensions`). Update your `mkdocs.yml` to use `material.extensions.emoji.twemoji` and `material.extensions.emoji.to_svg` instead of `materialx.emoji.*` references.
affects: 1.3 and later of `mkdocs-material-extensions` when used with `mkdocs-material` 9.4 and later.
deprecatedSupport for Python 3.6 was dropped in version 1.1, and Python 3.7 support was removed in version 1.2. Users on these older Python environments will need to upgrade to Python 3.8 or higher to use newer versions of `mkdocs-material-extensions` or the integrated functionality in `mkdocs-material`.
fix
Upgrade your Python environment to 3.8 or higher.
affects: 1.1, 1.2
gotchaVersion 1.0.2 addressed a circular dependency issue where `mkdocs-material-extensions` listed `mkdocs-material` as a dependency, while `mkdocs-material` also depended on `mkdocs-material-extensions`. While `pip` handled this, some other versioning tools experienced issues. `mkdocs-material` now manages the necessary version of this library directly, so explicit installation of `mkdocs-material-extensions` is usually not required unless troubleshooting or working with very specific, older setups.
fix
Ensure `mkdocs-material` is installed; typically, `mkdocs-material-extensions` will be pulled in as a transitive dependency if needed. Avoid explicit dependency on `mkdocs-material-extensions` unless absolutely necessary for specific version pinning scenarios, especially with older `mkdocs-material` versions.
affects: Prior to 1.0.2
Upgrade
Version history
1.3.1latest on PyPI · released Nov 22, 2023
Audit
Dependencies
mkdocs-materialrequiredThis library was designed to extend MkDocs Material. As of v1.0.2, MkDocs Material handles the dependency management for this library, implicitly pulling it in when needed.
Agent activity
5 hits · last 30 days
node
4
Resources
mkdocs-material-extensions — pip install mkdocs-material-extensions · libregistry