From 2cee8d8a2d44e4a5f8584f949f0f6af08c5d3636 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Tue, 27 Sep 2016 01:23:22 +0100 Subject: [PATCH] Update Parsedown.php Looks like I might need to return the pattern which was used previously Reverting last change as build still failed This build will still fail, but I'm hoping it will only fair where the list start value has been inserted --- Parsedown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index ac3ef81..5767fd6 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -508,7 +508,7 @@ class Parsedown if($name === 'ol' && $matches[2] !== '1') $name .= ' start="' . $matches[2] . '"'; $Block = array( 'indent' => $Line['indent'], - 'pattern' => $pattern, + 'pattern' => preg_replace('/\(|\)/', '', $pattern), 'element' => array( 'name' => $name, 'handler' => 'elements', @@ -1416,7 +1416,7 @@ class Parsedown $markup .= $Element['text']; } - $markup .= ''; + $markup .= ''; } else {