Skip to main content

A MkDocs plugin that converts markdown encoded images into <figure> elements.

Project description

MkDocs Img2Fig Plugin

This MkDocs plugin converts markdown encoded images like

![An image caption](\assets\images\my-image.png)

into

<figure class="figure-image">
  <img src="\assets\images\my-image.png" alt="An image caption">
  <figcaption>An image caption</figcaption>
</figure>

Requirements

This package requires Python >=3.7 and MkDocs version 1.0 or higher.

Installation

Install the package with pip:

pip install mkdocs-img2fig-plugin

Enable the plugin in your mkdocs.yml:

plugins:
    - search
    - img2fig

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-img2fig-plugin-0.9.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file mkdocs-img2fig-plugin-0.9.2.tar.gz.

File metadata

  • Download URL: mkdocs-img2fig-plugin-0.9.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for mkdocs-img2fig-plugin-0.9.2.tar.gz
Algorithm Hash digest
SHA256 2e93ed2320e3e2aa3daaceace1754fad6d806a233d74c0b9415456ce039ffbd4
MD5 38b56c4602da8a0d73ab2a47d842064d
BLAKE2b-256 d2d21f3633ba7971b6b80e53c3f3e9695a42c7393fc6beffab67f58eafbc04c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page