Media.php 362 B

1234567891011121314151617181920
  1. <?php
  2. namespace dokuwiki\Parsing\ParserMode;
  3. class Media extends AbstractMode
  4. {
  5. /** @inheritdoc */
  6. public function connectTo($mode)
  7. {
  8. // Word boundaries?
  9. $this->Lexer->addSpecialPattern("\{\{(?:[^\}]|(?:\}[^\}]))+\}\}", $mode, 'media');
  10. }
  11. /** @inheritdoc */
  12. public function getSort()
  13. {
  14. return 320;
  15. }
  16. }