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