Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.35 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.35 KB

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>