From 379cbf34b3466637d19b9ff526b248e2181f04da Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 7 Nov 2013 22:48:15 +0200 Subject: [PATCH] parse_block_elements doesn't have to use ltrim on lines with no indentation --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 3e32ffd..665f0a8 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -277,7 +277,7 @@ class Parsedown # ~ - $pure_line = ltrim($line); + $pure_line = $line[0] !== ' ' ? $line : ltrim($line); # Link Reference