From 330bbd03df8f41cf6e8036dbfc764dabddcd6715 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 28 May 2007 19:07:38 +0000 Subject: * Apply a patch from Carl Worth allowing a class attribute to be passed through the img plugin. Also allow the id attribute to be passed through. --- IkiWiki/Plugin/img.pm | 5 ++++- IkiWiki/Plugin/meta.pm | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index b1c9db80c..cff9dabf0 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -98,7 +98,10 @@ sub preprocess (@) { #{{{ return ''.$alt.''; + '" height="'.$im->Get("height").'"'. + (exists $params{class} ? ' class="'.$params{class}.'"' : ''). + (exists $params{id} ? ' id="'.$params{id}.'"' : ''). + ' />'; } #}}} 1 diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 18e28a196..d04bc1d51 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -65,7 +65,7 @@ sub preprocess (@) { #{{{ } } elsif ($key eq 'title') { - $title{$page}=encode_entities($value); + $title{$page}=$value; } elsif ($key eq 'permalink') { $permalink{$page}=$value; -- cgit v1.2.3