mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-02 19:32:35 +02:00
Intepret special "hidden" key as an empty element
This commit is contained in:
@@ -317,9 +317,16 @@ class Parsedown
|
||||
|
||||
protected function extractElement(array $Component)
|
||||
{
|
||||
if ( ! isset($Component['element']) and isset($Component['markup']))
|
||||
if ( ! isset($Component['element']))
|
||||
{
|
||||
$Component['element'] = array('rawHtml' => $Component['markup']);
|
||||
if (isset($Component['markup']))
|
||||
{
|
||||
$Component['element'] = array('rawHtml' => $Component['markup']);
|
||||
}
|
||||
elseif (isset($Component['hidden']))
|
||||
{
|
||||
$Component['element'] = array();
|
||||
}
|
||||
}
|
||||
|
||||
return $Component['element'];
|
||||
|
Reference in New Issue
Block a user