diff options
Diffstat (limited to 'inc/ParserMode/Rss.php')
-rw-r--r-- | inc/ParserMode/Rss.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/ParserMode/Rss.php b/inc/ParserMode/Rss.php new file mode 100644 index 000000000..197c9e2f4 --- /dev/null +++ b/inc/ParserMode/Rss.php @@ -0,0 +1,19 @@ +<?php + +namespace dokuwiki\ParserMode; + +class Rss extends AbstractMode +{ + + /** @inheritdoc */ + public function connectTo($mode) + { + $this->Lexer->addSpecialPattern("\{\{rss>[^\}]+\}\}", $mode, 'rss'); + } + + /** @inheritdoc */ + public function getSort() + { + return 310; + } +} |