Skip to content

jdittrich/figureAltCaption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates a figurecaption each Image which stands alone in a paragraph, similar to pandoc’s handling of images/figures


Licensed under the GPL 2 (see LICENSE.md)

Copyright 2015 - Jan Dittrich by building upon the markdown-figures Plugin by Copyright 2013 - Helder Correia (GPL2)


Example – this source:

Bla bla bla

![this is the caption](http://lorempixel.com/400/200/)

Next paragraph starts here

would generate this:

<p> Bla bla bla</p>

<figure>
    <img src="http://lorempixel.com/400/200/">
    <figcaption>this is the caption</figcaption>
</figure>

<p>Next paragraph starts here</p>

It can also handle images that use references and/or titles :

Some really good writing.

![Description of something cool.][ref1]

More great writing.

[ref1]: http://lorempixel.com/400/200/ "A title for the cool image."

would generate this:

<p>Some really good writing.</p>

<figure><img alt="Description of something cool." src="http://lorempixel.com/400/200/" title="A title for the cool image."><figcaption>Description of something cool.</figcaption>
</figure>

<p>More great writing.</p>

About

Extension for Python Markdown to add captions to images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages