fix: end a list item before a lazy line after an html block (#4159)

This commit is contained in:
Alperen
2026-11-02 07:54:02 -07:00
committed by GitHub
parent 02c73e8e65
commit 7ba42f445c
3 changed files with 42 additions and 0 deletions
+3
View File
@@ -458,6 +458,9 @@ export class _Tokenizer<ParserOutput = string, RendererOutput = string> {
if (headingBeginRegex.test(line)) {
break;
}
if (htmlBeginRegex.test(line)) {
break;
}
if (hrRegex.test(line)) {
break;
}
+25
View File
@@ -0,0 +1,25 @@
<ul>
<li>
<div>
</li>
</ul>
<p>not in the list</p>
<ul>
<li>item
<div>
</li>
</ul>
<p>not in the list</p>
<ol>
<li>
<!-- comment -->
</li>
</ol>
<p>not in the list</p>
<ul>
<li>
<p>item</p>
<pre>
</li>
</ul>
<p>not in the list</p>
+14
View File
@@ -0,0 +1,14 @@
- <div>
not in the list
- item
<div>
not in the list
1. <!-- comment -->
not in the list
- item
<pre>
not in the list