aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-09 14:41:28 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-09 14:41:28 -0500
commite01960e90aae4185771719e9eed00b23d43431a7 (patch)
tree65e4f88e717790fd1cae39d8471f8fad5f528563 /IkiWiki
parent2b9ce0129bc61177e976caf432af9b4406ab2f3f (diff)
downloadikiwiki-e01960e90aae4185771719e9eed00b23d43431a7.tar
ikiwiki-e01960e90aae4185771719e9eed00b23d43431a7.tar.gz
not only markdown adds gunk, so remove it in the main htmlize function
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/mdwn.pm9
1 files changed, 0 insertions, 9 deletions
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!^<p>!!;
- $content=~s!</p>$!!;
- chomp $content;
- }
-
return $content;
} # }}}