From abb88d59fac349e2c5dd7941ed4212bdee08c438 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 6 Feb 2014 02:36:11 +0200 Subject: [PATCH] fix reference --- Parsedown.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Parsedown.php b/Parsedown.php index 05cf8ac..eb7700c 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -438,6 +438,11 @@ class Parsedown $substring = substr($outdented_line, $position + 2); $substring = trim($substring); + if ($substring === '') + { + break; + } + if ($substring[0] === '<') { $position = strpos($substring, '>');