Lines Matching refs:text
20 protected function parseEmphStrong($text) argument
22 $marker = $text[0];
24 if (!isset($text[1])) {
25 return [['text', $text[0]], 1];
28 if ($marker == $text[1]) { // strong
33 if (strpos($text, $marker . $marker, 2) === false) {
34 return [['text', $text[0] . $text[1]], 2];
37 …if ($marker === '*' && preg_match('/^[*]{2}((?>\\\\[*]|[^*]|[*][^*]*[*])+?)[*]{2}/s', $text, $matc…
38 $marker === '_' && preg_match('/^__((?>\\\\_|[^_]|_[^_]*_)+?)__/us', $text, $matches)) {
53 if (strpos($text, $marker, 1) === false) {
54 return [['text', $text[0]], 1];
57 …' && preg_match('/^[*]((?>\\\\[*]|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*][^*])/s', $text, $matches) ||
58 …$marker === '_' && preg_match('/^_((?>\\\\_|[^_]|__[^_]*__)+?)_(?!_[^_])\b/us', $text, $matches)) {
61 return [['text', $text[0]], 1];
72 return [['text', $text[0]], 1];
85 abstract protected function parseInline($text); argument