Skip to main content

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

Project description

Docums Img2Fig Plugin

This Docums 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.5 and Docums version 1.0.0.0 or higher.

Installation

Install the package with pip:

pip install docums-img2fig-plugin

Enable the plugin in your docums.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. Docums 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 Docums 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

docums-img2fig-plugin-0.9.3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file docums-img2fig-plugin-0.9.3.tar.gz.

File metadata

  • Download URL: docums-img2fig-plugin-0.9.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4

File hashes

Hashes for docums-img2fig-plugin-0.9.3.tar.gz
Algorithm Hash digest
SHA256 716f1e98ea09c87682e7129440fc905129526103fd1557986a6e3d3568a42c90
MD5 a0f94aa6a6c666e9e250de8054e620fa
BLAKE2b-256 a50c464cedc0ac31c806242117393fa3c60dfb5aa5e313b890dfd7e9cc6b54d9

See more details on using hashes here.

Supported by

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