1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Header extends AbstractMode
6{
7    /** @inheritdoc */
8    public function connectTo($mode)
9    {
10        //we're not picky about the closing ones, two are enough
11        $this->Lexer->addSpecialPattern(
12            '[ \t]*={2,}[^\n]+={2,}[ \t]*(?=\n)',
13            $mode,
14            'header'
15        );
16    }
17
18    /** @inheritdoc */
19    public function getSort()
20    {
21        return 50;
22    }
23}
24