You are here

protected function MarkdownExtra::_doFencedCodeBlocks_newlines in Express 8

* Replace new lines in fenced code blocks *

Parameters

array $matches: * @return string

File

vendor/michelf/php-markdown/Michelf/MarkdownExtra.php, line 1480

Class

MarkdownExtra
Markdown Extra Parser Class

Namespace

Michelf

Code

protected function _doFencedCodeBlocks_newlines($matches) {
  return str_repeat("<br{$this->empty_element_suffix}", strlen($matches[0]));
}