xref: /dokuwiki/inc/Parsing/ParserMode/Hr.php (revision 25df03c8b9db6028949f02041f760332cedfebb8)
1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Hr extends AbstractMode
6{
7    /** @inheritdoc */
8    public function connectTo($mode)
9    {
10        $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)', $mode, 'hr');
11    }
12
13    /** @inheritdoc */
14    public function getSort()
15    {
16        return 160;
17    }
18}
19