You are here

protected function MarkdownExtra::_doFencedCodeBlocks_newlines in Markdown 7

* Replace new lines in fenced code blocks *

Parameters

array $matches: * @return string

File

includes/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]));
}