You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
449 B

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