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