diff --git a/markdown.php b/markdown.php index 0a6ffd6..04ac218 100644 --- a/markdown.php +++ b/markdown.php @@ -350,6 +350,8 @@ class markdown $htmlStack = array_reverse ($htmlStack); foreach ($htmlStack as $type) { + if ($type === "code") + $res = substr ($res, 0, -1); $this->debugMKD ("FIN"); $res .= "\n"; }