protected function Markdown::doHardBreaks in Markdown 7
* Do hard breaks *
Parameters
string $text: * @return string
File
- includes/
Markdown.php, line 630
Class
- Markdown
- Markdown Parser Class
Namespace
MichelfCode
protected function doHardBreaks($text) {
if ($this->hard_wrap) {
return preg_replace_callback('/ *\\n/', array(
$this,
'_doHardBreaks_callback',
), $text);
}
else {
return preg_replace_callback('/ {2,}\\n/', array(
$this,
'_doHardBreaks_callback',
), $text);
}
}