mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Allow parsedown to specify list start attribute
Syntax preferences
This commit is contained in:
parent
3978e33fd0
commit
5c22531e4d
@ -517,7 +517,8 @@ class Parsedown
|
||||
|
||||
if($name === 'ol')
|
||||
{
|
||||
$listStart = stristr($matches[0], ".", true);
|
||||
$listStart = stristr($matches[0], '.', true);
|
||||
|
||||
if($listStart !== '1')
|
||||
{
|
||||
$Block['element']['attributes'] = array('start' => $listStart);
|
||||
|
Loading…
Reference in New Issue
Block a user