mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
resolve #125 using strpos()
This commit is contained in:
parent
886c620440
commit
9bf64d2e31
@ -312,7 +312,7 @@ class Parsedown
|
|||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line[0] === '|')
|
if (strpos($line, '|') !== false)
|
||||||
{
|
{
|
||||||
$nestedBlocks = array();
|
$nestedBlocks = array();
|
||||||
|
|
||||||
@ -385,7 +385,7 @@ class Parsedown
|
|||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line[0] === '|' and $block['content'][0] === '|' and chop($line, ' -:|') === '')
|
if (strpos($line, '|') !== false and strpos($block['content'], '|') !== false and chop($line, ' -:|') === '')
|
||||||
{
|
{
|
||||||
$values = array();
|
$values = array();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user