From 841df2dd5512a77f8c0150bef8977010fdf0dc0c Mon Sep 17 00:00:00 2001 From: kalvn Date: Sun, 28 Feb 2016 18:24:30 +0100 Subject: Avoids populating a markdown empty container if there's no description. --- plugins/markdown/markdown.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index a45b6574..5a702c7b 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php @@ -173,7 +173,10 @@ function process_markdown($description) ->setBreaksEnabled(true) ->text($processedDescription); $processedDescription = sanitize_html($processedDescription); - $processedDescription = '
'. $processedDescription . '
'; + + if(!empty($processedDescription)){ + $processedDescription = '
'. $processedDescription . '
'; + } return $processedDescription; } -- cgit v1.2.3