From: Joey Hess Date: Thu, 19 Jun 2008 23:54:46 +0000 (-0400) Subject: avoid creole parsing wikilinks X-Git-Tag: 2.51~66 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/1b6b4da3a3fd34b7ac9bf3d7e7928af4bc35b81f avoid creole parsing wikilinks ikiwiki already does, and escaped links should not be processed by creole after ikiwiki de-escapes them --- diff --git a/IkiWiki/Plugin/creole.pm b/IkiWiki/Plugin/creole.pm index f7f7a61e3..a259f49eb 100644 --- a/IkiWiki/Plugin/creole.pm +++ b/IkiWiki/Plugin/creole.pm @@ -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