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
Hashes for mkdocs-material-extensions-1.0b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aaf3b1e81bdc503cb73bb90f91e7e635be5f54397bb22fb60d68b247cd8f7bd |
|
MD5 | 1523539f31c00807b83620cca6c7b079 |
|
BLAKE2b-256 | 596e7ebda0d9af891bccd80dc84895b8a0315d676980a45f33e3000682349328 |
Hashes for mkdocs_material_extensions-1.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f4d995923381e0dbfa36919dc7004fd0a69e3e0027058b153cc04d5f725f47 |
|
MD5 | 7a68bdcd7e94517bcb05e53103728c63 |
|
BLAKE2b-256 | 3552b0a6d3397a9de3e831f47a22dda93dbb666248c0f5ebd03a0b76ad778804 |