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