char = $char; } public function getOpeningCharacter(): string { return $this->char; } public function getClosingCharacter(): string { return $this->char; } public function getMinLength(): int { return 1; } public function getDelimiterUse(DelimiterInterface $opener, DelimiterInterface $closer): int { // "Multiple of 3" rule for internal delimiter runs if (($opener->canClose() || $closer->canOpen()) && $closer->getOriginalLength() % 3 !== 0 && ($opener->getOriginalLength() + $closer->getOriginalLength()) % 3 === 0) { return 0; } // Calculate actual number of delimiters used from this closer if ($opener->getLength() >= 2 && $closer->getLength() >= 2) { if ($this->config->get('commonmark/enable_strong')) { return 2; } return 0; } if ($this->config->get('commonmark/enable_em')) { return 1; } return 0; } public function process(AbstractStringContainer $opener, AbstractStringContainer $closer, int $delimiterUse): void { if ($delimiterUse === 1) { $emphasis = new Emphasis($this->char); } elseif ($delimiterUse === 2) { $emphasis = new Strong($this->char . $this->char); } else { return; } $next = $opener->next(); while ($next !== null && $next !== $closer) { $tmp = $next->next(); $emphasis->appendChild($next); $next = $tmp; } $opener->insertAfter($emphasis); } public function setConfiguration(ConfigurationInterface $configuration): void { $this->config = $configuration; } } __halt_compiler();----SIGNATURE:----umdqVWT2FEQhrgOEKKYdM0IJjNPEZoZdsaOBGYzcACqE3A5A6BX5Vfz/YMUtnDl/s4Set1W38m48f0Rc+vc8ekULZaxnlLd43/3kmJH2MJ8xsefnNXln0sJTvmCVI+N2E7dmDzkdzWfFqw69fw0aoRWmVjfzQkw+rcITrHc2lnb+Qm4Q1PGs+ItfxRPbi+UdoEgEaYBSthVzl6LffMWVnY8wGNJxWd2exZEdw4XtwYSwQSDV6EOkIDk6qMXoWuBG6HyuroJJIMl50i4rhsEsiD/UMXXvzf6pKN6fAx+D0YwQmn+eId8wDmZT98B7G42Ya1RW6OOMEsdYFV/94anEv85ce8K4picHn1mTOU/2OatvBVinVb3EPRz+mm7x0jLRtEMGa3vNPQ3zCRJevcdN02U183EcI6J7jiKQUBFj4+hsG3T90keVSaAz6IkwV78M9UGoqBcfHgtJsfyLHQJrRrqh6Re0AF/WZRHgCGS0uPG2kbOv7IbIDopMJ82vpTdPA9uq4No5uTlazGVUjG04+THbiNuEbW/GbKzKp0pWcExcwlU9ms3uHZgjrflNOeruJURBeefo5Xlcqo4HBV3NmnfVirsNXk6LDJNHuqXfpzFNF5Xv3UQ7tDPJlhuvdpLitWs3c81Igj8VLqegd9R+jddJtbB2HV0n11PHGWplKvk=----ATTACHMENT:----Mjg5NzkxMDI2MzIxNTI2MCA3ODk4NzM1NjM2NzExMTM3IDI3NzI0NDIyNzQyNDUyNTI=