1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

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);