Lines Matching refs:line
22 protected function identifyFencedCode($line) argument
24 return ($line[0] === '`' && strncmp($line, '```', 3) === 0) ||
25 ($line[0] === '~' && strncmp($line, '~~~', 3) === 0) ||
26 (isset($line[3]) && (
27 ($line[3] === '`' && strncmp(ltrim($line), '```', 3) === 0) ||
28 ($line[3] === '~' && strncmp(ltrim($line), '~~~', 3) === 0)
37 $line = ltrim($lines[$current]);
38 $fence = substr($line, 0, $pos = strrpos($line, $line[0]) + 1);
39 $language = rtrim(substr($line, $pos));
43 if (($pos = strpos($line = $lines[$i], $fence)) === false || $pos > 3) {
44 $content[] = $line;