Skip to main content
# Image Captions and Python and Markdown, together!

Your images have `<figcaption>` elements attached.

[![travis](https://travis-ci.org/bcaller/markdown_figure_caption.svg)](https://travis-ci.org/bcaller/markdown_figure_caption)
[![PyPI version](https://badge.fury.io/py/markdown_figure_caption.svg)](https://badge.fury.io/py/markdown_figure_caption)

Very similar to [figureAltCaption](https://github.com/jdittrich/figureAltCaption). This version doesn' handle references or attributes, but does handle links inside the caption.

Behaviour is best displayed via the tests:

```python
def test_image_simple(markdown):
s = "![The caption](http://example.com/x.png)"
converted = markdown.convert(s)
assert converted == '<p><figure><img alt="The caption" src="http://example.com/x.png" /><figcaption>The caption</figcaption></figure></p>'


def test_image_link_in_caption(markdown):
s = "![The caption from [source](http://example.com)](http://example.com/x.png)"
converted = markdown.convert(s)
assert converted == '<p><figure><img alt="The caption from source" src="http://example.com/x.png" /><figcaption>The caption from <a href="http://example.com">source</a></figcaption></figure></p>'

```


Metadata

Release files for markdown-figure-caption 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markdown-figure-caption 0.0.1
File Size Uploaded Provenance
markdown-figure-caption-0.0.1.tar.gz 14.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for markdown-figure-caption 0.0.1
File Interpreter ABI Platform
markdown_figure_caption-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / markdown-figure-caption-0.0.1.tar.gz

Download URL markdown-figure-caption-0.0.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eac5662c54571061b5620664c79d9f963152bd8ab83ce33c4a3e74361954df06
BLAKE2b-256 checksum
How to use checksums
be5e0f5d56b75421092dff10d6e92d611583fd0a6c45c6d2804e7a71edfb7633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.8.1 pkginfo/1.4.1 requests/2.9.1 setuptools/20.7.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Linux/4.4.6-3-surface

Release files / markdown_figure_caption-0.0.1-py3-none-any.whl

Download URL markdown_figure_caption-0.0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62295e96015fb6288f9bfcdea5fbe5b5134189dfd11a918f25490bc51b99dffe
BLAKE2b-256 checksum
How to use checksums
1789c2e9bcce4e5bb56fbe9fa5ff5abc65f4c96c951042b81ef628c90a39e850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.8.1 pkginfo/1.4.1 requests/2.9.1 setuptools/20.7.0 requests-toolbelt/0.7.0 clint/0.5.1 CPython/2.7.12 Linux/4.4.6-3-surface

Security for markdown-figure-caption 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page