Allow parsedown to specify list start attribute

oops
This commit is contained in:
Aidan Woods 2016-10-05 10:06:40 +01:00 committed by GitHub
parent 1fa8fae301
commit ed41fcf3d6
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ class Parsedown
);
if($name === 'ol')
{
$list_num = explode ('.', $matches[0], 1)[0];
$list_num = explode ('.', $matches[0], 2)[0];
if($list_num !== '1')
{
$Block['element']['attributes'] = array('start' => $list_num);