Metadata-Version: 2.0
Name: markdown-figure-caption
Version: 0.0.1
Summary: Add <figcaption> elements to your images
Home-page: https://github.com/bcaller/pinyin_markdown
Author: Ben Caller
Author-email: bcallergmai@l.com
License: AGPLv3
Keywords: markdown
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Requires-Dist: markdown (>=3.0)

# 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>'

```


