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