xref: /dokuwiki/inc/Parsing/ParserMode/Underline.php (revision 1f44347694a1b2d0182a0aaa0ca79ba9930f1d2a)
1<?php
2
3namespace dokuwiki\Parsing\ParserMode;
4
5class Underline extends AbstractFormatting
6{
7    /** @inheritdoc */
8    protected function getModeName(): string
9    {
10        return 'underline';
11    }
12
13    /** @inheritdoc */
14    protected function getEntryPattern(): string
15    {
16        return '__(?=.*__)';
17    }
18
19    /** @inheritdoc */
20    protected function getExitPattern(): string
21    {
22        return '__';
23    }
24
25    /** @inheritdoc */
26    public function getSort()
27    {
28        return 90;
29    }
30}
31