protected function Markdown::doBlockQuotes in Markdown 7
* Parse Markdown blockquotes to HTML *
Parameters
string $text: * @return string
File
- includes/
Markdown.php, line 1428
Class
- Markdown
- Markdown Parser Class
Namespace
MichelfCode
protected function doBlockQuotes($text) {
$text = preg_replace_callback('/
( # Wrap whole match in $1
(?>
^[ ]*>[ ]? # ">" at the start of a line
.+\\n # rest of the first line
(.+\\n)* # subsequent consecutive lines
\\n* # blanks
)+
)
/xm', array(
$this,
'_doBlockQuotes_callback',
), $text);
return $text;
}