for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace dokuwiki\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'
);
}
public function getSort()
return 50;