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
This commit is contained in:
Aidan Woods 2016-09-27 01:23:22 +01:00 committed by GitHub
parent cceefafd55
commit 2cee8d8a2d
1 changed files with 2 additions and 2 deletions

View File

@ -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 .= '</'.$Element['name'].'>';
$markup .= '</'.preg_replace('/[ ].*/', '', $Element['name']).'>';
}
else
{