]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
add graphs
[ikiwiki.git] / IkiWiki.pm
index 88dcdcb5b89993857cd61ffc64ce8d41f0957459..d5a641526b91ad3aff6efb48ae832c151fc1fb9d 100644 (file)
@@ -546,7 +546,12 @@ sub htmllink ($$$;@) { #{{{
                $bestlink.="#".$opts{anchor};
        }
 
-       return "<a href=\"$bestlink\">$linktext</a>";
+       my @attrs;
+       if (defined $opts{rel}) {
+               push @attrs, ' rel="'.$opts{rel}.'"';
+       }
+
+       return "<a href=\"$bestlink\"@attrs>$linktext</a>";
 } #}}}
 
 sub htmlize ($$$) { #{{{
@@ -1036,7 +1041,7 @@ sub pagespec_translate ($) { #{{{
                |
                        \)              # )
                |
-                       \w+\([^\)]+\)   # command(params)
+                       \w+\([^\)]*\)   # command(params)
                |
                        [^\s()]+        # any other text
                )