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
1 changed files with 2 additions and 1 deletions

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