From e373391e7d248b30288b8683098f8700a46412ae Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 1 May 2014 00:29:21 +0300 Subject: [PATCH] resolve #164 --- Parsedown.php | 2 +- test/data/separated_nested_list.html | 9 +++++++++ test/data/separated_nested_list.md | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/data/separated_nested_list.html create mode 100644 test/data/separated_nested_list.md diff --git a/Parsedown.php b/Parsedown.php index 763199e..72719a0 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -548,7 +548,7 @@ class Parsedown { $Block['li']['text'] []= ''; - $text = preg_replace('/^[ ]{0,2}/', '', $Line['body']); + $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']); $Block['li']['text'] []= $text; diff --git a/test/data/separated_nested_list.html b/test/data/separated_nested_list.html new file mode 100644 index 0000000..80a5cae --- /dev/null +++ b/test/data/separated_nested_list.html @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/test/data/separated_nested_list.md b/test/data/separated_nested_list.md new file mode 100644 index 0000000..d7cd1af --- /dev/null +++ b/test/data/separated_nested_list.md @@ -0,0 +1,4 @@ +- li + + - li + - li \ No newline at end of file