mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user