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)
|
->setBreaksEnabled(true)
|
||||||
->text($processedDescription);
|
->text($processedDescription);
|
||||||
$processedDescription = sanitize_html($processedDescription);
|
$processedDescription = sanitize_html($processedDescription);
|
||||||
|
|
||||||
|
if(!empty($processedDescription)){
|
||||||
$processedDescription = '<div class="markdown">'. $processedDescription . '</div>';
|
$processedDescription = '<div class="markdown">'. $processedDescription . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
return $processedDescription;
|
return $processedDescription;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue