Permalink
Browse files

Disable newline-only br tags from EXTENDED

  • Loading branch information...
1 parent 1897df6 commit dee97f4e29a6cc28345906c4e61368959acbc51a Justin de Vesine committed May 17, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 markdown_extended.php
View
@@ -27,13 +27,13 @@ function transform($text) {
return $text;
}
- function doHardBreaks($text) {
- # Do hard breaks:
- # EXTENDED: changed to allow breaks without two spaces and just one new line
- # original code /* return preg_replace_callback('/ {2,}\n/', */
- return preg_replace_callback('/ *\n/',
- array(&$this, '_doHardBreaks_callback'), $text);
- }
+ //function doHardBreaks($text) {
+ //# Do hard breaks:
+ //# EXTENDED: changed to allow breaks without two spaces and just one new line
+ //# original code [> return preg_replace_callback('/ {2,}\n/', <]
+ //return preg_replace_callback('/ *\n/',
+ //array(&$this, '_doHardBreaks_callback'), $text);
+ //}
function doBlockQuotes($text) {
@@ -158,4 +158,4 @@ function _doFencedFigures_callback($matches) {
return "\n". $this->hashBlock($res)."\n\n";
}
}
-?>
+?>

0 comments on commit dee97f4

Please sign in to comment.