text. Only the exact 3+3 symmetric * variant is supported. Longer symmetric runs (`****foo****`, * `******foo******`) or asymmetric runs (`***foo**`) require CommonMark's * full delimiter-pairing algorithm and are out of scope. * * Sort 65 is below Strong (70) so this mode wins the lexer race for * `***...***` patterns. */ class GfmEmphasisStrong extends AbstractFormatting { /** @inheritdoc */ public function getSort() { return 65; } /** @inheritdoc */ protected function getModeName(): string { return 'gfm_emphasis_strong'; } /** @inheritdoc */ protected function getEntryPattern(): string { // Broken down: // (?addCall('emphasis_open', [], $pos); $handler->addCall('strong_open', [], $pos); break; case DOKU_LEXER_EXIT: $handler->addCall('strong_close', [], $pos); $handler->addCall('emphasis_close', [], $pos); break; case DOKU_LEXER_UNMATCHED: $handler->addCall('cdata', [$match], $pos); break; } return true; } }