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