From f13214cfa7589e6b2bfdec19e14707bfeca1d8d9 Mon Sep 17 00:00:00 2001 From: Emanuil <4thmail@gmail.com> Date: Wed, 18 Sep 2013 19:53:44 +0300 Subject: [PATCH] single line blockquotes should also go through "parse_lines" --- Parsedown.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index 1e2f1c7..9532e6e 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -273,12 +273,10 @@ class Parsedown if (isset($blockquote)) { $blockquote .= "\n".$matches[1]; - $blockquote_is_multiline = true; } else { $blockquote = $matches[1]; - $blockquote_is_multiline = false; } unset($line); @@ -288,13 +286,10 @@ class Parsedown if (isset($line) and $line === '') { $blockquote .= "\n"; - $blockquote_is_multiline = true; } else { - $blockquote = $blockquote_is_multiline - ? $this->parse_lines($blockquote) - : '
'.$this->parse_inline_elements($blockquote).'
'."\n"; + $blockquote = $this->parse_lines($blockquote); $markup .= ''."\n".$blockquote.''."\n";