mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
fix: end a list item before a lazy line after an html block (#4159)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user