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:
parent
7c6ac35dfe
commit
2fb958db26
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user