fix Markdown vs. markdown
1 files changed, 9 insertions(+), 4 deletions(-) M index.pl
M index.pl => index.pl +9 -4
@@ 102,11 102,16 @@ sub walktree ($$$) { # # postprocess $content with markdown # eval { $content=Text::Markdown::Markdown($content) } unless $file=~/\.(?:html|php)$/; $content="<b>ERROR</b>: <a href=\"http://daringfireball.net/projects/markdown/\">Text::Markdown</a> perl module not found". unless ($file=~/\.(?:html|php)$/) { eval { $content=Text::Markdown::Markdown($content) }; eval { $content=Text::Markdown::markdown($content) } if $@; $content="<b>ERROR</b>: <a href=\"http://daringfireball.net/projects/markdown/\">Text::Markdown</a> perl module not found". "<br/>Please install. Showing plain page:<br/><pre>$content</pre>\n" if $@; } $hit=1; } elsif (-l "$dir/$file") { $redir=readlink "$dir/$file";