Extension pack for Python Markdown.
Project description
MkDocs Material Extensions
Markdown extension resources for MkDocs Material
Install
pip install mkdocs-material-extensions
Inline SVG Icons
MkDocs Material provides numerous icons from Material, FontAwesome, and Octicons, but it does so by inlining the SVG icons into the source. Currently there is no easy way access these icons and arbitrarily insert them into Markdown content. Users must include the icon fonts themselves and do it with HTML.
This module allows you to use PyMdown Extensions' Emoji extension to enable easy insertion of MkDocs Material's
SVG assets using simple :emoji-syntax:
. This is done by creating our own emoji index and
emoji generator. The custom index provides a modified version of the Emoji extensions Twemoji
index.
In addition to the custom index, you must also specify the associated custom generator. This will will find the appropriate icon and insert it into your Markdown content as an inlined SVG.
Example:
markdown_extensions:
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
Then, using the folder structure of Material's .icons
folder, you can specify icons:
We can use Material Icons :material-airplane:.
We can also use Fontawesome Icons :fontawesome-solid-ambulance:.
That's not all, we can also use Octicons :octicons-octoface:.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mkdocs-material-extensions-1.0b1.tar.gz
.
File metadata
- Download URL: mkdocs-material-extensions-1.0b1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aaf3b1e81bdc503cb73bb90f91e7e635be5f54397bb22fb60d68b247cd8f7bd |
|
MD5 | 1523539f31c00807b83620cca6c7b079 |
|
BLAKE2b-256 | 596e7ebda0d9af891bccd80dc84895b8a0315d676980a45f33e3000682349328 |
File details
Details for the file mkdocs_material_extensions-1.0b1-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_material_extensions-1.0b1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f4d995923381e0dbfa36919dc7004fd0a69e3e0027058b153cc04d5f725f47 |
|
MD5 | 7a68bdcd7e94517bcb05e53103728c63 |
|
BLAKE2b-256 | 3552b0a6d3397a9de3e831f47a22dda93dbb666248c0f5ebd03a0b76ad778804 |