diff options
Diffstat (limited to 'inc/parser/parser.php')
-rw-r--r-- | inc/parser/parser.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/inc/parser/parser.php b/inc/parser/parser.php index a99d8da34..e5a58f336 100644 --- a/inc/parser/parser.php +++ b/inc/parser/parser.php @@ -222,22 +222,11 @@ class Doku_Parser_Mode_header extends Doku_Parser_Mode { function preConnect() { //we're not picky about the closing ones, two are enough - - // Header 1 is special case - match 6 or more $this->Lexer->addSpecialPattern( - '[ \t]*={6,}[^\n]+={2,}[ \t]*(?=\n)', + '[ \t]*={2,6}[^\n]+={2,}[ \t]*(?=\n)', 'base', 'header' ); - - // For the rest, match exactly - for ( $i = 5; $i > 1; $i--) { - $this->Lexer->addSpecialPattern( - '[ \t]*={'.$i.'}[^\n]+={2,}[ \t]*(?=\n)', - 'base', - 'header' - ); - } } function getSort() { |