From e01960e90aae4185771719e9eed00b23d43431a7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 Jan 2008 14:41:28 -0500 Subject: not only markdown adds gunk, so remove it in the main htmlize function --- IkiWiki/Plugin/mdwn.pm | 9 --------- 1 file changed, 9 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/mdwn.pm b/IkiWiki/Plugin/mdwn.pm index 1520b3eec..254ab51d0 100644 --- a/IkiWiki/Plugin/mdwn.pm +++ b/IkiWiki/Plugin/mdwn.pm @@ -41,8 +41,6 @@ sub htmlize (@) { #{{{ require Encode; } - my $oneline = $content !~ /\n/; - # Workaround for perl bug (#376329) $content=Encode::encode_utf8($content); eval {$content=&$markdown_sub($content)}; @@ -52,13 +50,6 @@ sub htmlize (@) { #{{{ } $content=Encode::decode_utf8($content); - if ($oneline) { - # hack to get rid of enclosing junk added by markdown - $content=~s!^

!!; - $content=~s!

$!!; - chomp $content; - } - return $content; } # }}} -- cgit v1.2.3