mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
Allow parsedown to specify list start attribute
oops
This commit is contained in:
parent
1fa8fae301
commit
ed41fcf3d6
@ -515,7 +515,7 @@ class Parsedown
|
|||||||
);
|
);
|
||||||
if($name === 'ol')
|
if($name === 'ol')
|
||||||
{
|
{
|
||||||
$list_num = explode ('.', $matches[0], 1)[0];
|
$list_num = explode ('.', $matches[0], 2)[0];
|
||||||
if($list_num !== '1')
|
if($list_num !== '1')
|
||||||
{
|
{
|
||||||
$Block['element']['attributes'] = array('start' => $list_num);
|
$Block['element']['attributes'] = array('start' => $list_num);
|
||||||
|
Loading…
Reference in New Issue
Block a user