Browse Source

+ add <codeblock> handler

master
Alex 'AdUser' Z 9 years ago
parent
commit
821581b3e5
  1. 13
      lib/Text/Dokuwiki/Render/Markdown.pm

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

@ -104,4 +104,17 @@ sub pre {
return join("\n", @lines); return join("\n", @lines);
} }
sub codeblock {
my ($self, $attrs, $content) = @_;
my $out;
$out = "```";
$out .= $attrs->{syntax} if $attrs->{syntax};
$out .= "\n";
$out .= $content . "\n";
$out .= "```\n";
return $out;
}
1; 1;

Loading…
Cancel
Save