Avoids populating a markdown empty container if there's no description.
This commit is contained in:
parent
8710d4da8e
commit
841df2dd55
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