Browse Source

* Text::Dokuwiki::Render::Markdown : 'pre' tag

master
Zubrikhin Alexey 10 years ago
parent
commit
38d28ff340
  1. 4
      lib/Text/Dokuwiki/Render/Markdown.pm

4
lib/Text/Dokuwiki/Render/Markdown.pm

@ -114,7 +114,9 @@ sub blockquote {
sub pre { sub pre {
my ($self, $attrs, $content) = @_; my ($self, $attrs, $content) = @_;
return "<pre>\n$content\n</pre>\n"; my @lines = map { " $_" } split(/\r?\n/o, $content);
return join("\n", @lines);
} }
1; 1;

Loading…
Cancel
Save