From f6b47b0d1c67228f13242864a50827b40abb320c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 7 Jun 2008 23:45:40 -0400 Subject: img: Support captions. --- doc/plugins/img.mdwn | 3 ++- doc/style.css | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/plugins/img.mdwn b/doc/plugins/img.mdwn index b5eef148f..a4661f1a8 100644 --- a/doc/plugins/img.mdwn +++ b/doc/plugins/img.mdwn @@ -24,7 +24,8 @@ original image's aspect ratio is always preserved, even if this means making the image smaller than the specified size. You can also pass `alt`, `title`, `class` and `id` parameters. These are -passed through unchanged to the html img tag. +passed through unchanged to the html img tag. If you include a `caption` +parameter, the caption will be displayed centered beneath the image. The `link` parameter is used to control whether the scaled down image links to the full size version. By default it does; set "link=somepage" to link diff --git a/doc/style.css b/doc/style.css index f9a69c4f1..b98507991 100644 --- a/doc/style.css +++ b/doc/style.css @@ -53,6 +53,12 @@ div.tags { text-decoration: none; } +.img caption { + font-size: 80%; + caption-side: bottom; + text-align: center; +} + #backlinks { margin-top: 1em; } -- cgit v1.2.3