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:----aQWz9BREbvF97TAjv++GtFfFIXx5gZizn3sp1xv9PS2ERrzrXCcgGM7+9uifJPMUZdwytrIi/kuo1HnH29v+brtFFnQKbp6gdh+vkjM+NUNrARkjrVjPpQEqLETcao32NxB+4X5yfvX65tExBwl+MIBnwHRQO8VXl4V49lhWF7KxhwJ5jtnwegMuW5uxhORcORqz3KJY2brdd5bFJn00aw8I67ZeZ9Nkbw90HKd5z0SPkEf8AjqnJAnGFkr3IR2wtp2ANt3+k+6+enJNpRKf4X3+zniFbrHc/+0jV2LHdpcsAtyZOaENLA7VU3AnWTeRbLgWNU06F1kJZhq5oy2Bk7N9gBz/rhCrTBbHZAG7tJ4PEpW+L7qFTVSaKchnbEP8SgLkmM1otgtktzxFiPjaK1NpK3RaJW/KJASPUwiD9LJib4zcHWZmvEjiklPXt2rXcYQkfJIKrKpzJq2BdbYPqB5IGbv3K3tS0oZXpjg9QXN/FlLfVZe1kIrjaaHiueMyBkqnuaoEYTZzPK6bPD15LJxPc9BmYeThqbQv88pKn7X+5NtGL3lbOmCrf08rJw8ea0hzLxpfmXQiu61s09MAx6VUy3mAKP+j0fxQZPfdcXHRLSnf00960+mjQKXnPue6+PqMjZymaVPSZ/WCkif9BizzeQXetNekwDDVUMYDPas=----ATTACHMENT:----NjIwOTI3MzE2NjU2OTUxNyAyMDIyMjMwMDc3NzgwNDIgOTIwNDk0MjU3NzEwNzY2MA==