uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
.
/
vendor
/
cebe
/
markdown
/
inline
/
CodeTrait.php
/
/
<?php /** * @copyright Copyright (c) 2014 Carsten Brandt * @license https://github.com/cebe/markdown/blob/master/LICENSE * @link https://github.com/cebe/markdown#readme */ namespace cebe\markdown\inline; /** * Adds inline code elements */ trait CodeTrait { /** * Parses an inline code span `` ` ``. * @marker ` */ protected function parseInlineCode($text) { if (preg_match('/^(``+)\s(.+?)\s\1/s', $text, $matches)) { // code with enclosed backtick return [ [ 'inlineCode', $matches[2], ], strlen($matches[0]) ]; } elseif (preg_match('/^`(.+?)`/s', $text, $matches)) { return [ [ 'inlineCode', $matches[1], ], strlen($matches[0]) ]; } return [['text', $text[0]], 1]; } protected function renderInlineCode($block) { return '<code>' . htmlspecialchars($block[1], ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8') . '</code>'; } }
/srv/users/craft4/apps/craft4-newsite-space/./vendor/cebe/markdown/inline/CodeTrait.php