1 Recent versions of Text::Markdown as found on CPAN (e.g. 1.0.16) no longer contains a Text::Markdown::Markdown() routine, but instead contains a Text::Markdown::markdown() routine (notice the difference in capitalization).
3 It seems that the Text::Markdown module as found on CPAN is now identical to Text::MultiMarkdown - hence the subtle change.
5 This patch allows IkiWiki to work with either of the two:
7 --- IkiWiki/Plugin/mdwn.pm.orig 2008-03-08 11:33:50.000000000 +0100
8 +++ IkiWiki/Plugin/mdwn.pm 2008-03-08 13:37:21.000000000 +0100
9 @@ -28,14 +28,20 @@ sub htmlize (@) { #{{{
10 $markdown_sub=\&Markdown::Markdown;
13 - eval q{use Text::Markdown};
14 + eval q{use Text::Markdown 'Markdown'};
16 $markdown_sub=\&Text::Markdown::Markdown;
19 - do "/usr/bin/markdown" ||
20 - error(sprintf(gettext("failed to load Markdown.pm perl module (%s) or /usr/bin/markdown (%s)"), $@, $!));
21 - $markdown_sub=\&Markdown::Markdown;
22 + eval q{use Text::Markdown 'markdown'};
24 + $markdown_sub=\&Text::Markdown::markdown;
27 + do "/usr/bin/markdown" ||
28 + error(sprintf(gettext("failed to load Markdown.pm perl module (%s) or /usr/bin/markdown (%s)"), $@, $!));
29 + $markdown_sub=\&Markdown::Markdown;
35 The above patch, which is against ikiwiki-2.40, should fix [[bugs/markdown_module_location]].
37 -- [[HenrikBrixAndersen]]