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

Syntax preferences
This commit is contained in:
Aidan Woods 2016-10-05 18:27:54 +01:00 committed by GitHub
parent 3978e33fd0
commit 5c22531e4d

View File

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