11f443476SAndreas Gohr<?php 21f443476SAndreas Gohr 31f443476SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode; 41f443476SAndreas Gohr 51f443476SAndreas Gohrclass Emphasis extends AbstractFormatting 61f443476SAndreas Gohr{ 71f443476SAndreas Gohr /** @inheritdoc */ 8*71096e46SAndreas Gohr public function getSort() 9*71096e46SAndreas Gohr { 10*71096e46SAndreas Gohr return 80; 11*71096e46SAndreas Gohr } 12*71096e46SAndreas Gohr 13*71096e46SAndreas Gohr /** @inheritdoc */ 141f443476SAndreas Gohr protected function getModeName(): string 151f443476SAndreas Gohr { 161f443476SAndreas Gohr return 'emphasis'; 171f443476SAndreas Gohr } 181f443476SAndreas Gohr 191f443476SAndreas Gohr /** 201f443476SAndreas Gohr * @inheritdoc 211f443476SAndreas Gohr * @see https://github.com/dokuwiki/dokuwiki/issues/384 221f443476SAndreas Gohr * @see https://github.com/dokuwiki/dokuwiki/issues/763 231f443476SAndreas Gohr * @see https://github.com/dokuwiki/dokuwiki/issues/1468 241f443476SAndreas Gohr */ 251f443476SAndreas Gohr protected function getEntryPattern(): string 261f443476SAndreas Gohr { 271f443476SAndreas Gohr return '//(?=[^\x00]*[^:])'; 281f443476SAndreas Gohr } 291f443476SAndreas Gohr 301f443476SAndreas Gohr /** @inheritdoc */ 311f443476SAndreas Gohr protected function getExitPattern(): string 321f443476SAndreas Gohr { 331f443476SAndreas Gohr return '//'; 341f443476SAndreas Gohr } 351f443476SAndreas Gohr} 36