dockerwiki/content/inc/Parsing/ParserMode/Header.php
2021-10-26 13:02:53 +02:00

25 lines
450 B
PHP

<?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;
}
}