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