Lines Matching defs:Line
188 $Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
194 $Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
232 $Block = $this->{'block'.$blockType}($Line, $CurrentBlock);
266 $CurrentBlock = $this->paragraph($Line);
320 protected function blockCode($Line, $Block = null)
327 if ($Line['indent'] >= 4)
329 $text = substr($Line['body'], 4);
346 protected function blockCodeContinue($Line, $Block)
348 if ($Line['indent'] >= 4)
359 $text = substr($Line['body'], 4);
379 protected function blockComment($Line)
386 if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
389 'markup' => $Line['body'],
392 if (preg_match('/-->$/', $Line['text']))
401 protected function blockCommentContinue($Line, array $Block)
408 $Block['markup'] .= "\n" . $Line['body'];
410 if (preg_match('/-->$/', $Line['text']))
421 protected function blockFencedCode($Line)
423 if (preg_match('/^['.$Line['text'][0].']{3,}[ ]*([^`]+)?[ ]*$/', $Line['text'], $matches))
454 'char' => $Line['text'][0],
466 protected function blockFencedCodeContinue($Line, $Block)
480 if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text']))
489 $Block['element']['text']['text'] .= "\n".$Line['body'];
506 protected function blockHeader($Line)
508 if (isset($Line['text'][1]))
512 while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
522 $text = trim($Line['text'], '# ');
539 protected function blockList($Line)
541 list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]');
543 if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches))
546 'indent' => $Line['indent'],
578 protected function blockListContinue($Line, array $Block)
580 if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches))
608 if ($Line['text'][0] === '[' and $this->blockReference($Line))
615 $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
622 if ($Line['indent'] > 0)
626 $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
655 protected function blockQuote($Line)
657 if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
671 protected function blockQuoteContinue($Line, array $Block)
673 if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
689 $Block['element']['text'] []= $Line['text'];
698 protected function blockRule($Line)
700 if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text']))
715 protected function blockSetextHeader($Line, array $Block = null)
722 if (chop($Line['text'], $Line['text'][0]) === '')
724 $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
733 protected function blockMarkup($Line)
740 if (preg_match('/^<(\w[\w-]*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches))
752 'markup' => $Line['text'],
757 $remainder = substr($Line['text'], $length);
785 protected function blockMarkupContinue($Line, array $Block)
792 if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
797 if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
816 $Block['markup'] .= "\n".$Line['body'];
824 protected function blockReference($Line)
826 if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches))
853 protected function blockTable($Line, array $Block = null)
860 if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '')
864 $divider = $Line['text'];
960 protected function blockTableContinue($Line, array $Block)
967 if ($Line['text'][0] === '|' or strpos($Line['text'], '|'))
971 $row = $Line['text'];
1014 protected function paragraph($Line)
1019 'text' => $Line['text'],