summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Woods <aidantwoods@gmail.com>2016-10-05 18:27:54 +0100
committerGitHub <noreply@github.com>2016-10-05 18:27:54 +0100
commit5c22531e4dc535077e6dce163fbfc5389feddeab (patch)
tree4f6e73eb5642a26d68d65c04094f281559aded43
parent3978e33fd0eb964f9faa8ce9862b8518492a7a54 (diff)
downloadparsedown-5c22531e4dc535077e6dce163fbfc5389feddeab.zip
parsedown-5c22531e4dc535077e6dce163fbfc5389feddeab.tar.gz
parsedown-5c22531e4dc535077e6dce163fbfc5389feddeab.tar.bz2
Allow parsedown to specify list start attribute
Syntax preferences
-rw-r--r--Parsedown.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Parsedown.php b/Parsedown.php
index cf78d7a..4737eee 100644
--- a/Parsedown.php
+++ b/Parsedown.php
@@ -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);