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.
 
 
 
 
 

19 lines
322 B

  1. <?php
  2. namespace dokuwiki\Parsing\ParserMode;
  3. class Hr extends AbstractMode
  4. {
  5. /** @inheritdoc */
  6. public function connectTo($mode)
  7. {
  8. $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)', $mode, 'hr');
  9. }
  10. /** @inheritdoc */
  11. public function getSort()
  12. {
  13. return 160;
  14. }
  15. }