diff --git a/Parsedown.php b/Parsedown.php index 1ad3dea..396e970 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -568,7 +568,11 @@ class Parsedown strpos($text, "\x1A\\") !== FALSE and $text = strtr($text, $this->escape_sequence_map); - $markup .= '
'.$text.'
'."\n";
+ $markup .= isset($element['language'])
+ ? ''.$text.'
'
+ : ''.$text.'
';
+
+ $markup .= "\n";
break;