From be569e0cbf66ff1b50ab3f80445c0f5732581880 Mon Sep 17 00:00:00 2001 From: Zubrikhin Alexey Date: Mon, 13 Apr 2015 10:21:42 +1000 Subject: [PATCH] = header levels --- lib/Text/Dokuwiki.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Text/Dokuwiki.pm b/lib/Text/Dokuwiki.pm index 08aae92..0618078 100644 --- a/lib/Text/Dokuwiki.pm +++ b/lib/Text/Dokuwiki.pm @@ -57,7 +57,7 @@ sub parse { given ($line) { # header - when (m/^\s?(={1,6}) (.+) \g{1}\s*/o) { + when (m/^\s?(={2,6}) (.+) \g{1}\s*/o) { my $level = $1 =~ tr/=/=/; $level = 7 - $level; # invert push @{ $tree }, ["h$level" => {}, 0 => $2];