You are here

protected function Markdown::doBlockQuotes in Express 8

* Parse Markdown blockquotes to HTML *

Parameters

string $text: * @return string

File

vendor/michelf/php-markdown/Michelf/Markdown.php, line 1428

Class

Markdown
Markdown Parser Class

Namespace

Michelf

Code

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