You are here

function Markdown_Parser::doHardBreaks in Markdown 5

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

File

./markdown.php, line 642

Class

Markdown_Parser

Code

function doHardBreaks($text) {

  # Do hard breaks:
  return preg_replace_callback('/ {2,}\\n/', array(
    &$this,
    '_doHardBreaks_callback',
  ), $text);
}