From 1b6b4da3a3fd34b7ac9bf3d7e7928af4bc35b81f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 19 Jun 2008 19:54:46 -0400 Subject: avoid creole parsing wikilinks ikiwiki already does, and escaped links should not be processed by creole after ikiwiki de-escapes them --- IkiWiki/Plugin/creole.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3