getChildrenAsString()); $preContent = \str_replace(['
', '
'], '', $preContent); /* * Checking for the code tag. * Usually pre tags are used along with code tags. This conditional will check for already converted code tags, * which use backticks, and if those backticks are at the beginning and at the end of the string it means * there's no more information to convert. */ $firstBacktick = \strpos(\trim($preContent), '`'); $lastBacktick = \strrpos(\trim($preContent), '`'); if ($firstBacktick === 0 && $lastBacktick === \strlen(\trim($preContent)) - 1) { return $preContent . "\n\n"; } // If the execution reaches this point it means it's just a pre tag, with no code tag nested // Empty lines are a special case if ($preContent === '') { return "```\n```\n\n"; } // Normalizing new lines $preContent = \preg_replace('/\r\n|\r|\n/', "\n", $preContent); \assert(\is_string($preContent)); // Ensure there's a newline at the end if (\strrpos($preContent, "\n") !== \strlen($preContent) - \strlen("\n")) { $preContent .= "\n"; } // Use three backticks return "```\n" . $preContent . "```\n\n"; } /** * @return string[] */ public function getSupportedTags(): array { return ['pre']; } } __halt_compiler();----SIGNATURE:----ycosHLki52eEUr2+386BG19wd9dyo2XGgfGHUChByklewFlSwUhKugh937tho1LcXwHjSwObkZnWiuqgL4XbnCOZhA6bYVog0k5pgBpQs3MNecQJe7y6dDATYqJkeRxFixU7W4ZzBZWcgnP2UZBTudmxmPOWeOaEofuXd5/pgWhXOtaHGDsMuCesDn/34Mwinbh6/qAKKhPuroGH+IPajSoVsIUnJum+EqqTDM7pYFNrXpyw3sJCGJKnaM2qlKDDKtpoZOnluK3nZQ5/IeRTisN2SrEtTdJRbTVztGaT6yADMRLy6n78iTZ9q/18KMBQyFfL/diCBsKutMm+0Ht32yNF809ELTqGWvpPNHM7WVmO+FRCDy8sYn7eauuYMixWUW9AlmwtGWwS49YFZu/ctPawtFLCS8M+h/z72kCRjOdwmpHtYT0m6Q3+tCF3ziul/KpH/KajnHIHeyapaXXp/CRHzbMCM7dr+ynhqJpUnwFgjUOHAZYJMC5NaGLGPesE+F+r1R7wfYLg6RNB+IAEw1htgdDLIqcJpvMV/5XeATKYbey7TtsdhZyhMwI/xzllHjSVY13IVPwWc8pus+1Rbsupt5r+EOCRrQ93RQaC2ofhGqd/YoDu5DLw9FgiO6BobrT4IxG3H41JzvoIdfv0yCHeN8AGlqGbKZrFyhQtspg=----ATTACHMENT:----Nzc4MTUzMzI1MzgyMTQ4MCA0MjM5OTA4MjYyODI4NTgyIDk1NjUxOTM0Nzc4NTQzODU=