1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Trim whitespace

This commit is contained in:
Aidan Woods 2018-03-27 11:23:04 +01:00
parent f594d4c18b
commit d2a73f9179
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -558,7 +558,7 @@ class Parsedown
if($name === 'ol')
{
$listStart = ltrim(strstr($matches[1], $Block['data']['markerType'], true), '0') ?: '0';
if($listStart !== '1')
{
$Block['element']['attributes'] = array('start' => $listStart);