From 9bf64d2e315ff351dfad5988924fd7f32973da77 Mon Sep 17 00:00:00 2001 From: Won-Kyu Park Date: Thu, 27 Feb 2014 21:50:17 +0900 Subject: [PATCH] resolve #125 using strpos() --- Parsedown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index d2501a0..e3ed02a 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -312,7 +312,7 @@ class Parsedown continue 2; } - if ($line[0] === '|') + if (strpos($line, '|') !== false) { $nestedBlocks = array(); @@ -385,7 +385,7 @@ class Parsedown 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();