bradchoate / text-textile

Text::Textile -- Perl module for handling Textile format
20 stars 11 forks source link

adding rel-tag to images #5

Open zurborg opened 12 years ago

zurborg commented 12 years ago

example usage to enable the nice lightbox:

!/path/to/image/ {lightbox}!

or to create an image group:

!/path/to/image1 {lightbox[foo]}! !/path/to/image2 {lightbox[foo]}!

for more information see: http://lokeshdhakar.com/projects/lightbox2/

bradchoate commented 10 years ago

I'm not really interested in supporting a rel attribute for images... image markup is already kind of complicated. I would suggest using the class name method instead. You could then do this ahead of the lightbox2 initialization:

$('.lightbox').each(function() { $(this).attr('rel', 'lightbox'); });

Would that be suitable?