xref: /dokuwiki/inc/Parsing/ParserMode/Internallink.php (revision 2401f18d305c5060bd60ef150d62bbf916c4e7c1)
1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Internallink extends AbstractMode
6{
7
8    /** @inheritdoc */
9    public function connectTo($mode)
10    {
11        // Word boundaries?
12        $this->Lexer->addSpecialPattern("\[\[.*?\]\](?!\])", $mode, 'internallink');
13    }
14
15    /** @inheritdoc */
16    public function getSort()
17    {
18        return 300;
19    }
20}
21