From: Michael Foord <fuzzyman@vo...> - 2007-07-04 13:27:12
I have a 'complaint' about the HTML generated from image references in
ReStructured text. If directed I can post it as a bug on sourceforge.
The following image reference:
.. image:: someimage.jpg
:alt: some alt
Generates something like the following HTML output:
<a class="reference image-reference" href="biggerimage.jpg">
<div align="center" class="align-center">
<img alt="some alt" class="image align-center" src="someimage.jpg"
style="width: 379px; height: 269px;" />
Firstly, having the div inside the anchor is invalid XHTML which isn't
nice. There is a *worse* consequence, which annoys me and some of the
readers of my blog. The whole inner div becomes the anchor target -
which includes all the whitespace around the image. (At least with
Firefox.) It would be *much* preferable if just the image was the anchor
All the best,
Get latest updates about Open Source Projects, Conferences and News.