Browse Source

= header levels

master
Zubrikhin Alexey 10 years ago
parent
commit
be569e0cbf
  1. 2
      lib/Text/Dokuwiki.pm

2
lib/Text/Dokuwiki.pm

@ -57,7 +57,7 @@ sub parse {
given ($line) { given ($line) {
# header # header
when (m/^\s?(={1,6}) (.+) \g{1}\s*/o) { when (m/^\s?(={2,6}) (.+) \g{1}\s*/o) {
my $level = $1 =~ tr/=/=/; my $level = $1 =~ tr/=/=/;
$level = 7 - $level; # invert $level = 7 - $level; # invert
push @{ $tree }, ["h$level" => {}, 0 => $2]; push @{ $tree }, ["h$level" => {}, 0 => $2];

Loading…
Cancel
Save