1
0
mirror of https://github.com/typemill/typemill.git synced 2025-01-16 21:08:20 +01:00

Version 1.5.3: Fix parsedown error when exclude shortcode

This commit is contained in:
trendschau 2022-02-04 15:58:48 +01:00
parent 7c6ac35dfe
commit 2fb958db26

View File

@ -772,7 +772,7 @@ class ParsedownExtension extends \ParsedownExtra
{
if(is_array($this->allowedShortcodes) && empty($this->allowedShortcodes))
{
return false;
return array('element' => array());
}
$shortcodeString = substr($matches[0], 2, -2);
@ -784,7 +784,7 @@ class ParsedownExtension extends \ParsedownExtra
if(is_array($this->allowedShortcodes) && !in_array($shortcode['name'], $this->allowedShortcodes))
{
return false;
return array('element' => array());
}
# are there params?