You are here

function Markdown_Parser::doBlockQuotes in Markdown 5

Same name and namespace in other branches
  1. 6 markdown.php \Markdown_Parser::doBlockQuotes()

File

./markdown.php, line 1276

Class

Markdown_Parser

Code

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;
}