diff --git a/Parsedown.php b/Parsedown.php index 14668fe..90e65a8 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -958,7 +958,7 @@ class Parsedown $markup .= $this->readPlainText($plainText); - $markup .= isset($Span['element']) ? $this->element($Span['element']) : $Span['markup']; + $markup .= isset($Span['markup']) ? $Span['markup'] : $this->element($Span['element']); $text = substr($text, $Span['position'] + $Span['extent']);