Merge pull request #506 from kalvn/master
Avoids populating a markdown empty container if there's no description.
This commit is contained in:
commit
40b25bef6a
1 changed files with 4 additions and 1 deletions
|
@ -173,7 +173,10 @@ function process_markdown($description)
|
|||
->setBreaksEnabled(true)
|
||||
->text($processedDescription);
|
||||
$processedDescription = sanitize_html($processedDescription);
|
||||
$processedDescription = '<div class="markdown">'. $processedDescription . '</div>';
|
||||
|
||||
if(!empty($processedDescription)){
|
||||
$processedDescription = '<div class="markdown">'. $processedDescription . '</div>';
|
||||
}
|
||||
|
||||
return $processedDescription;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue