1 <?php
2 
3 namespace dokuwiki\Parsing\ParserMode;
4 
5 class 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