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