diff --git a/lib/Text/Dokuwiki/Render/Markdown.pm b/lib/Text/Dokuwiki/Render/Markdown.pm index 93aeefa..b73f2e3 100644 --- a/lib/Text/Dokuwiki/Render/Markdown.pm +++ b/lib/Text/Dokuwiki/Render/Markdown.pm @@ -104,4 +104,17 @@ sub pre { 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;