mirror of
https://github.com/erusev/parsedown.git
synced 2025-01-29 19:08:29 +01:00
add array check
This commit is contained in:
parent
d19c2b6942
commit
973d4a866d
@ -1041,7 +1041,7 @@ class Parsedown
|
|||||||
|
|
||||||
protected function identifyEscapeSequence($excerpt)
|
protected function identifyEscapeSequence($excerpt)
|
||||||
{
|
{
|
||||||
if (in_array($excerpt[1], $this->specialCharacters))
|
if (isset($excerpt[1]) && in_array($excerpt[1], $this->specialCharacters))
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'markup' => $excerpt[1],
|
'markup' => $excerpt[1],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user