You are here

function Markdown_Parser::doHardBreaks in Markdown 6

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

File

./markdown.php, line 677

Class

Markdown_Parser

Code

function doHardBreaks($text) {

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