From 57e6a3ffb696dc9cde9f71abdf183ae31e61e9a4 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 23 Apr 2015 11:27:21 +1000 Subject: [PATCH] * parse text inside list items and paragraphs --- lib/Text/Dokuwiki.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Text/Dokuwiki.pm b/lib/Text/Dokuwiki.pm index ecac1f5..9d44f51 100644 --- a/lib/Text/Dokuwiki.pm +++ b/lib/Text/Dokuwiki.pm @@ -45,7 +45,7 @@ sub _parse_list { if ($level->{curr} < $level->{last}) { pop @stack; } - push @{ $stack[-1] }, [li => {}, $rest]; + push @{ $stack[-1] }, [li => {}, $self->_parse_text($rest)]; } pop @stack while @stack; @@ -295,7 +295,7 @@ sub parse { } # nonempty line when (m/^\s?(\S.+)/o) { - push @{ $tree }, [p => {}, $1]; + push @{ $tree }, [p => {}, $self->_parse_text($1)]; next; } # empty lines;