mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-03 03:42:38 +02:00
Old handler compatability layer
This commit is contained in:
@@ -1546,9 +1546,18 @@ class Parsedown
|
|||||||
$Element['nonNestables'] = array();
|
$Element['nonNestables'] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$function = $Element['handler']['function'];
|
if (is_string($Element['handler']))
|
||||||
$argument = $Element['handler']['argument'];
|
{
|
||||||
$destination = $Element['handler']['destination'];
|
$function = $Element['handler'];
|
||||||
|
$argument = $Element['text'];
|
||||||
|
$destination = 'rawHtml';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$function = $Element['handler']['function'];
|
||||||
|
$argument = $Element['handler']['argument'];
|
||||||
|
$destination = $Element['handler']['destination'];
|
||||||
|
}
|
||||||
|
|
||||||
$Element[$destination] = $this->{$function}($argument, $Element['nonNestables']);
|
$Element[$destination] = $this->{$function}($argument, $Element['nonNestables']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user