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