mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Old handler compatability layer
This commit is contained in:
parent
d5ded2b935
commit
40e797031e
@ -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']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user