Browse Source

* parse text inside list items and paragraphs

master
Alex 'AdUser' Z 10 years ago
parent
commit
57e6a3ffb6
  1. 4
      lib/Text/Dokuwiki.pm

4
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;

Loading…
Cancel
Save