X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fmarkdown%2Fmarkdown.php;h=5a702c7b5df8a639c6b41257ae3d152167352cf8;hb=841df2dd5512a77f8c0150bef8977010fdf0dc0c;hp=a45b6574c1888d8470933022eaaa4868ce924f7d;hpb=8710d4da8e21b31a90bdcaed10521e0b937cf6c2;p=github%2Fshaarli%2FShaarli.git 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; }