xref: /dokuwiki/inc/Parsing/ParserMode/Strong.php (revision 71096e46fcbfaeaa808667aba794e77fe2780169)
11f443476SAndreas Gohr<?php
21f443476SAndreas Gohr
31f443476SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode;
41f443476SAndreas Gohr
51f443476SAndreas Gohrclass Strong extends AbstractFormatting
61f443476SAndreas Gohr{
71f443476SAndreas Gohr    /** @inheritdoc */
8*71096e46SAndreas Gohr    public function getSort()
9*71096e46SAndreas Gohr    {
10*71096e46SAndreas Gohr        return 70;
11*71096e46SAndreas Gohr    }
12*71096e46SAndreas Gohr
13*71096e46SAndreas Gohr    /** @inheritdoc */
141f443476SAndreas Gohr    protected function getModeName(): string
151f443476SAndreas Gohr    {
161f443476SAndreas Gohr        return 'strong';
171f443476SAndreas Gohr    }
181f443476SAndreas Gohr
191f443476SAndreas Gohr    /** @inheritdoc */
201f443476SAndreas Gohr    protected function getEntryPattern(): string
211f443476SAndreas Gohr    {
221f443476SAndreas Gohr        return '\*\*(?=.*\*\*)';
231f443476SAndreas Gohr    }
241f443476SAndreas Gohr
251f443476SAndreas Gohr    /** @inheritdoc */
261f443476SAndreas Gohr    protected function getExitPattern(): string
271f443476SAndreas Gohr    {
281f443476SAndreas Gohr        return '\*\*';
291f443476SAndreas Gohr    }
301f443476SAndreas Gohr}
31