Restructured Text - adding title attributes to links

Posted by Ant on Stack Overflow See other posts from Stack Overflow or by Ant
Published on 2010-12-30T10:46:16Z Indexed on 2010/12/30 10:54 UTC
Read the original article Hit count: 140

Filed under:
|
|

Hi all,

I am trying to use a jquery lightbox implementation on my website that is generated from Restructured Text. The lightbox takes the title of the link around the images as the caption of the image in the lightbox display.

However, I can't seem to find a way in Restructured Text of providing a title attribute on a link - does anyone know of a way of doing so. My Images are defined like so:

.. image:: image001.thumb.jpg
    :alt: Some alt text here
    :target: image001.jpg

So I can add an alt attribute, but not a title. A possible alternative may be to use a target as the reference like so:

.. image:: image001.thumb.jpg
    :alt: Some alt text here
    :target: image1_

.. _image1: image001.jpg

In this latter case, I am not sure how to add attributes to the link defined at the bottom (if it is possible at all)

© Stack Overflow or respective owner

Related posts about html

Related posts about sphinx