mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Intepret special "hidden" key as an empty element
This commit is contained in:
parent
fd95703da5
commit
9eed1104e7
@ -317,10 +317,17 @@ class Parsedown
|
|||||||
|
|
||||||
protected function extractElement(array $Component)
|
protected function extractElement(array $Component)
|
||||||
{
|
{
|
||||||
if ( ! isset($Component['element']) and isset($Component['markup']))
|
if ( ! isset($Component['element']))
|
||||||
|
{
|
||||||
|
if (isset($Component['markup']))
|
||||||
{
|
{
|
||||||
$Component['element'] = array('rawHtml' => $Component['markup']);
|
$Component['element'] = array('rawHtml' => $Component['markup']);
|
||||||
}
|
}
|
||||||
|
elseif (isset($Component['hidden']))
|
||||||
|
{
|
||||||
|
$Component['element'] = array();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $Component['element'];
|
return $Component['element'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user