diff --git a/Parsedown.php b/Parsedown.php index 610cc7a..6690451 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -200,13 +200,14 @@ class Parsedown $blocks []= $block; - unset($block['first']); - $block['last'] = true; $block['lines'] = array(); $block['lines'] []= preg_replace('/^[ ]{0,4}/', '', $matches[1]); + unset($block['first']); + unset($block['interrupted']); + continue 2; } diff --git a/tests/data/sparse_dense_list.html b/tests/data/sparse_dense_list.html new file mode 100644 index 0000000..095bc73 --- /dev/null +++ b/tests/data/sparse_dense_list.html @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/tests/data/sparse_dense_list.md b/tests/data/sparse_dense_list.md new file mode 100644 index 0000000..5768422 --- /dev/null +++ b/tests/data/sparse_dense_list.md @@ -0,0 +1,4 @@ +- li + +- li +- li \ No newline at end of file