summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Woods <aidantwoods@gmail.com>2016-10-05 10:06:40 +0100
committerGitHub <noreply@github.com>2016-10-05 10:06:40 +0100
commited41fcf3d6714cef3c183386d1d111f54a9948fe (patch)
treec36505fda40af90b5745102f5adb732771956831
parent1fa8fae301e33a79d7345e7c6db526228a322d05 (diff)
downloadparsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.zip
parsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.tar.gz
parsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.tar.bz2
Allow parsedown to specify list start attribute
oops
-rw-r--r--Parsedown.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parsedown.php b/Parsedown.php
index a8e8e95..a9fa5ae 100644
--- a/Parsedown.php
+++ b/Parsedown.php
@@ -515,7 +515,7 @@ class Parsedown
);
if($name === 'ol')
{
- $list_num = explode ('.', $matches[0], 1)[0];
+ $list_num = explode ('.', $matches[0], 2)[0];
if($list_num !== '1')
{
$Block['element']['attributes'] = array('start' => $list_num);