mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
interrupted list items should not add nonexistent empty lines
This commit is contained in:
parent
18d112a614
commit
5b01915a63
@ -221,6 +221,8 @@ class Parsedown
|
|||||||
|
|
||||||
$element['lines'] []= $line;
|
$element['lines'] []= $line;
|
||||||
|
|
||||||
|
unset($element['interrupted']);
|
||||||
|
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
tests/data/multiline_list_paragraph.html
Normal file
7
tests/data/multiline_list_paragraph.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<p>li</p>
|
||||||
|
<p>line
|
||||||
|
line</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
4
tests/data/multiline_list_paragraph.md
Normal file
4
tests/data/multiline_list_paragraph.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- li
|
||||||
|
|
||||||
|
line
|
||||||
|
line
|
Loading…
Reference in New Issue
Block a user