]> sipb.mit.edu Git - ikiwiki.git/commitdiff
img: Pass the align parameter through to the generated img tag.
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 11 Jul 2009 04:33:19 +0000 (00:33 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 11 Jul 2009 04:33:19 +0000 (00:33 -0400)
IkiWiki/Plugin/img.pm
debian/changelog
doc/ikiwiki/directive/img.mdwn

index a186abdfce81f80ab8625d6c6b05872b34167c7c..78e3789171c53a5e90110f666e08ef0860bd36f7 100644 (file)
@@ -123,6 +123,7 @@ sub preprocess (@) {
                '" height="'.$im->Get("height").'"'.
                (exists $params{alt} ? ' alt="'.$params{alt}.'"' : '').
                (exists $params{title} ? ' title="'.$params{title}.'"' : '').
+               (exists $params{align} ? ' align="'.$params{align}.'"' : '').
                (exists $params{class} ? ' class="'.$params{class}.'"' : '').
                (exists $params{id} ? ' id="'.$params{id}.'"' : '').
                ' />';
index e83e570d315874f82314bbe1408faf8fa5ef9060..5001031df0f52098fbc8b8cfd3bc7bb6cd5e81a8 100644 (file)
@@ -1,6 +1,7 @@
 ikiwiki (3.1416) UNRELEASED; urgency=low
 
   * svn: Fix rcs_rename to properly scope call to dirname.
+  * img: Pass the align parameter through to the generated img tag.
 
  -- Joey Hess <joeyh@debian.org>  Wed, 08 Jul 2009 13:10:38 -0400
 
index 1d1f29bea875102f1c3973cf081ed8ba36f9274f..66efd008e47db04b8c2b8313b3f010a5ef6596e2 100644 (file)
@@ -18,9 +18,9 @@ making the image smaller than the specified size. You can also specify only
 the width or the height, and the other value will be calculated based on
 it: "200x", "x200"
 
-You can also pass `alt`, `title`, `class` and `id` parameters. These are
-passed through unchanged to the html img tag. If you include a `caption`
-parameter, the caption will be displayed centered beneath the image.
+You can also pass `alt`, `title`, `class`, `align` and `id` parameters.
+These are 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