From 7943179ea5792c38148ee8d744f2a380ae39b929 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 14 Jul 2015 22:41:33 +1000 Subject: [PATCH] * add handler for code --- lib/Text/Dokuwiki/Render/Markdown.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Text/Dokuwiki/Render/Markdown.pm b/lib/Text/Dokuwiki/Render/Markdown.pm index 20af9a8..6b30ab8 100644 --- a/lib/Text/Dokuwiki/Render/Markdown.pm +++ b/lib/Text/Dokuwiki/Render/Markdown.pm @@ -46,6 +46,7 @@ sub ol { my $self = shift; $self->_list(@_); }; sub b { my $self = shift; $self->_wrap('**', @_); } # bold sub i { my $self = shift; $self->_wrap('*', @_); } # italics sub u { my $self = shift; $self->_wrap('*', @_); } # underline, replace with italics +sub code { my $self = shift; $self->_wrap('`', @_); } # inline code sub div { my ($self, $attrs, $content) = @_;