Definition list as image caption

John MacFarlane fiddlosopher at gmail.com
Mon Jun 25 17:18:25 EDT 2012


Pandoc has for some time supported the following convention.
A paragraph containing just an image (and nothing else) gets
treated as a figure, with the alt text as the caption.
(If you don't want this, you can defeat it by including
a nonbreaking space or empty comment in the paragraph alongside
the image.)

One advantage of this extension is that it degrades well when
you process it with standard markdown processors.

Pandoc also supports a syntax for captioning tables, described here:
http://johnmacfarlane.net/pandoc/README.html#tables

John

+++ Lou Quillio [Jun 22 12 17:38 ]:

> On Fri, Jun 22, 2012 at 4:00 AM, Jakob <jakov at gmx.at> wrote:

> >  recently though about image captions, then i realized that this could be

> > achiebed by Markdown Extra's definition list feature:

> >

> > ![alttext](http://exampl.com/img.jpg)

> > : here goes the *caption*

> >

> > What do you think?

>

> For reference, here's Russ Weakly in 2004:

>

> http://www.maxdesign.com.au/articles/definition/

>

> LQ

>

>

> --

> Lou Quillio

> http://quillio.com/

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>



More information about the Markdown-Discuss mailing list