]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Revert "Improve img's documentation."
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 15 Nov 2009 19:52:53 +0000 (14:52 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 15 Nov 2009 19:52:53 +0000 (14:52 -0500)
The information added is incorrect.

doc/bugs/img_vs_align.mdwn [new file with mode: 0644]
doc/ikiwiki/directive/img.mdwn

diff --git a/doc/bugs/img_vs_align.mdwn b/doc/bugs/img_vs_align.mdwn
new file mode 100644 (file)
index 0000000..dcb9129
--- /dev/null
@@ -0,0 +1,11 @@
+The *[[ikiwiki/directive/img]]* directive allows for specifying an
+*align* parameter -- which is of limited usability as the image is
+embedded as `<p><img ...></p>`.  That's at least what I see on
+<http://www.bddebian.com:8888/~hurd-web/hurd/status/>.  On the other
+hand, CSS is supposed to be used instead, I guess.  (But how...  I forgot
+almost of my CSS foo again ;-) it seems.) --[[tschwinge]]
+
+> [[!img logo/ikiwiki.png align=right]]The [img tag doesn't create P tags](http://git.ikiwiki.info/?p=ikiwiki;a=blob;f=IkiWiki/Plugin/img.pm;h=32023fa97af8ba8e63192cacaff10a4677d20654;hb=HEAD), but if you have surrounded the img directive with newlines, they will result in paragraph tags.
+>
+> I've edited the URL you provided to demonstrate this -- hope you don't mind! I've also added an inline, right-aligned image to this page.[[!tag done]]
+> -- [[Jon]]
index b847aa239476596d88d273f5346e60071212c391..94cc754bd8dc5152bb638ec8957337ecc724c423 100644 (file)
@@ -22,12 +22,6 @@ 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.
 
-Note that for the `align` parameter to work, you have to make sure that the
-`img` directive isn't surrounded with newlines, as the [[Markdown]] renderer
-would otherwise put the image into its own paragraph, inhibiting this
-functionality from working.  On the other hand, CSS should probably rather be
-used instead.
-
 The `link` parameter is used to control whether the scaled image links
 to the full size version. By default it does; set "link=somepage" to link
 to another page instead, or "link=no" to disable the link, or