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; }