]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
avoid creole parsing wikilinks
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 19 Jun 2008 23:54:46 +0000 (19:54 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 19 Jun 2008 23:54:46 +0000 (19:54 -0400)
ikiwiki already does, and escaped links should not be processed by creole
after ikiwiki de-escapes them

IkiWiki/Plugin/creole.pm

index f7f7a61e3dd369821c00200281016df557b69552..a259f49ebe386225f982ac30e04d0c3eb5c73015 100644 (file)
@@ -17,7 +17,12 @@ sub htmlize (@) { #{{{
 
        eval q{use Text::WikiCreole};
        return $content if $@;
-       return Text::WikiCreole::creole_parse($content);
+
+       # don't parse WikiLinks, ikiwiki already does
+       creole_link(sub { return shift });
+       creole_customlinks();
+
+       return creole_parse($content);
 } # }}}
 
 1