]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
make taglink support the same method for specifying link text as a regular
[git.ikiwiki.info.git] / IkiWiki.pm
index 720afdecd0faabf496f8e93797be1174b010c91c..1c15e9299bd0774255b89eaf080b79e54af1a481 100644 (file)
@@ -588,6 +588,9 @@ sub htmllink ($$$;@) { #{{{
        if (defined $opts{rel}) {
                push @attrs, ' rel="'.$opts{rel}.'"';
        }
+       if (defined $opts{class}) {
+               push @attrs, ' class="'.$opts{class}.'"';
+       }
 
        return "<a href=\"$bestlink\"@attrs>$linktext</a>";
 } #}}}