diff --git a/Parsedown.php b/Parsedown.php index 60aff75..b843a6a 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1546,9 +1546,18 @@ class Parsedown $Element['nonNestables'] = array(); } - $function = $Element['handler']['function']; - $argument = $Element['handler']['argument']; - $destination = $Element['handler']['destination']; + if (is_string($Element['handler'])) + { + $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']); }