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;