MkDocs Em-Img2Fig Plugin
This MkDocs plugin converts markdown encoded images surrounded by two asterisks or two underscores like
**
OR
__
into <figure> notation with inline markdown for the image itself:
<figure markdown>

<figcaption>Image caption</figcaption>
</figure>
Requirements
This package requires:
- Python >=3.9 and MkDocs version 1.0 or higher.
md_in_htmlextension enabled in your MkDocs configuration.
Installation
Install the package with pip:
pip install mkdocs-em-img2fig-plugin
Enable the mkdocs-em-img2fig-plugin plugin and md_in_html extension in your mkdocs.yml:
plugins:
- search
- autolinks
- em-img2fig
markdown_extensions:
- md_in_html
Note: If you use autolinks or similar plugin declare em-img2fig after it, not before for correct precedence.
Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.
More information about plugins in the MkDocs documentation
Credits
This plugin is a fork of the https://github.com/stuebersystems/mkdocs-img2fig-plugin which does not require the two asterisks or two underscores
Metadata
Release files for mkdocs-em-img2fig-plugin 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs_em_img2fig_plugin-0.3.3.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_em_img2fig_plugin-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / mkdocs_em_img2fig_plugin-0.3.3.tar.gz
| Download URL | mkdocs_em_img2fig_plugin-0.3.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8780fa24d5f99b6e5c1649dff113b69c1c4eefdf40b2ccd19b6025334a3ec9af
|
|
BLAKE2b-256 checksum How to use checksums |
c3c2b9fb25de4b8bba7c186a5bd2c6af8a3a4ac36b4e627a52c1d4765ab23dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / mkdocs_em_img2fig_plugin-0.3.3-py3-none-any.whl
| Download URL | mkdocs_em_img2fig_plugin-0.3.3-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1e7c47a6dbee2256bbaade097194b3675a40bbd968331c604f39f328193ffcf
|
|
BLAKE2b-256 checksum How to use checksums |
12ea6c9ffb768bdf67d76c5174a917fbc7b5d0a7cf3f5a117d97ef3b0acc0d7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|