mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-09 14:20:51 +02:00
Allow parsedown to specify list start attribute
oops
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user