From f310bbe13f8331913c16e19707629de5f374d015 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 17 Apr 2014 15:07:09 +0300 Subject: [PATCH] nested calls to lines should not reset reference definitions --- Parsedown.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index 4c50544..4364e86 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -48,6 +48,9 @@ class Parsedown # trim line breaks $markup = trim($markup, "\n"); + # clean up + $this->references = array(); + return $markup; } @@ -242,10 +245,6 @@ class Parsedown # ~ - $this->references = array(); - - # ~ - return $markup; }