diff --git a/Parsedown.php b/Parsedown.php index 4e4449c..763199e 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -537,7 +537,7 @@ class Parsedown if ( ! isset($Block['interrupted'])) { - $text = preg_replace('/^[ ]{0,2}/', '', $Line['body']); + $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']); $Block['li']['text'] []= $text; diff --git a/test/data/deeply_nested_list.md b/test/data/deeply_nested_list.md index c761dc7..76b7552 100644 --- a/test/data/deeply_nested_list.md +++ b/test/data/deeply_nested_list.md @@ -1,6 +1,6 @@ - li - - li - li + - li + - li - li - - li - li \ No newline at end of file