diff options
author | Aidan Woods <aidantwoods@gmail.com> | 2016-10-05 10:06:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-05 10:06:40 +0100 |
commit | ed41fcf3d6714cef3c183386d1d111f54a9948fe (patch) | |
tree | c36505fda40af90b5745102f5adb732771956831 | |
parent | 1fa8fae301e33a79d7345e7c6db526228a322d05 (diff) | |
download | parsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.zip parsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.tar.gz parsedown-ed41fcf3d6714cef3c183386d1d111f54a9948fe.tar.bz2 |
Allow parsedown to specify list start attribute
oops
-rw-r--r-- | Parsedown.php | 2 |
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); |