Browse Source

* parser now understands hrule

master
Alex 'AdUser' Z 10 years ago
parent
commit
53e6f1ac44
  1. 2
      lib/Text/Dokuwiki/Parser.pm

2
lib/Text/Dokuwiki/Parser.pm

@ -236,6 +236,8 @@ sub parse {
my $level = length($+{line});
$level = 7 - $level; # invert
push @tree, ["h$level" => {}, $+{header}];
} elsif ($text =~ m/\G$rx->{hrule}/cgi) {
push @tree, [hr => {}];
} elsif ($text =~ m/\G$rx->{codeblock}/cgi) {
my $attrs = {};
$attrs->{type} = $+{tag};

Loading…
Cancel
Save