Browse Source

* Text::Dokuwiki::Render::Markdown : support for <sup> and <blockquote>

master
Zubrikhin Alexey 10 years ago
parent
commit
5183ddd16f
  1. 13
      lib/Text/Dokuwiki/Render/Markdown.pm

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

@ -91,4 +91,17 @@ sub span {
return $content;
}
sub sup {
my ($self, $attrs, $content) = @_;
return "<sup>" . $self->treewalk($content) . "</sup>";
}
sub blockquote {
my ($self, $attrs, $content) = @_;
my @out = map { "> $_\n" } split /\r?\n/, $content;
return join("\n", @out);
}
1;

Loading…
Cancel
Save