git.iko.soy/typeable/pandoc
on master help sign in
README: document new image with caption feature.

An image in a paragraph by itself is treated as a figure, with the alt text the caption. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1890 788f1e2b-df1e-0410-8736-df70ead52e1b

commit766f2aaeacb0f4ed99cf6f6089e2b3587edfcba1 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 16 Mar 2010, 04:06 (17 years ago) parentbaae74a
1 file changed+17
README+17
README+17
@@ -909,6 +909,23 @@ code block above will appear as follows:
909909 </code>
910910 </pre>
911911
912+Images with captions
913+--------------------
914+
915+An image occurring by itself in a paragraph will be rendered as
916+a figure with a caption. (In LaTeX, a figure environment will be
917+used; in HTML, the image will be placed in a `div` with class
918+`figure`, together with a caption in a `div` with class `caption`.)
919+The image's alt text will be used as the caption.
920+
921+ ![This is the caption](/url/of/image.png)
922+
923+If you just want a regular inline image, just make sure it is not
924+the only thing in the paragraph. One way to do this is to insert a
925+nonbreaking space after the image:
926+
927+ ![This image won't be a figure](/url/of/image.png)\
928+
912929Title blocks
913930------------
914931